You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a client does not specify the set of fields for a given resource type, the server MAY send all fields, a subset of fields, or no fields for that resource type.
Currently, this implementation sends all fields. There should be the ability to mark a field as being excluded from this default response, such that it must be explicitly requested in order to be included.
I'm unsure of what a good method name for this would be though - open to suggestions...
Maybe:
Attribute::make('expensive')->onlyIfRequested();
The text was updated successfully, but these errors were encountered:
The JSON:API spec on Sparse Fieldsets states:
Currently, this implementation sends all fields. There should be the ability to mark a field as being excluded from this default response, such that it must be explicitly requested in order to be included.
I'm unsure of what a good method name for this would be though - open to suggestions...
Maybe:
The text was updated successfully, but these errors were encountered: