-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental nested expanded fields idea #35
base: main
Are you sure you want to change the base?
Conversation
class SubscriptionExpanded { | ||
final Subscription subscription; | ||
final List<Discount>? discounts; | ||
final List<DiscountExpanded>? discounts; | ||
final InvoiceExpanded? latestInvoice; | ||
final Customer? customer; | ||
final CustomerExpanded? customer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the pattern we need to stick with. In most cases the included fields will have nesting of their own, and in order to minimize breaking changes as we add more "expanded" fields -- we'll need to make all nested fields xExpanded
:
class ObjExpanded {
final Obj obj;
final NestedAExpanded nestedA;
final NestedB...
}
for (int i = 0; i < expand.innerNestedFields.length; i++) | ||
'expand[$i]': expand.innerNestedFields.elementAt(i), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be extracted into a reusable piece. Maybe a utility on ExpandableField.
No description provided.