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
When using the ResponseFromApiResource attribute, it's possible to account for usage of whenLoaded in Eloquent API Resources using the with: argument to eager load relationships. whenLoaded is helpful in preventing N+1 query problems in API Resources.
whenCounted / withCount is similarly helpful in preventing N+1 query problems, but doesn't appear to be supported by Scribe. This means counts won't appear in API docs generated by Scribe.
A good solution could be to support withCount in ResponseFromApiResource?
The text was updated successfully, but these errors were encountered:
When using the ResponseFromApiResource attribute, it's possible to account for usage of whenLoaded in Eloquent API Resources using the with: argument to eager load relationships. whenLoaded is helpful in preventing N+1 query problems in API Resources.
whenCounted / withCount is similarly helpful in preventing N+1 query problems, but doesn't appear to be supported by Scribe. This means counts won't appear in API docs generated by Scribe.
A good solution could be to support withCount in ResponseFromApiResource?
When using the
ResponseFromApiResource
attribute, it's possible to account for usage of whenLoaded in Eloquent API Resources using thewith:
argument to eager load relationships.whenLoaded
is helpful in preventing N+1 query problems in API Resources.whenCounted / withCount is similarly helpful in preventing N+1 query problems, but doesn't appear to be supported by Scribe. This means counts won't appear in API docs generated by Scribe.
A good solution could be to support
withCount
inResponseFromApiResource
?The text was updated successfully, but these errors were encountered: