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
This field fetches a one-to-one relationship, e.g. the details of a book, when using a foreign key on the distant resource.
But actually it could be used to display only one record of many references (eg the latest reference of a record). To choose the right record to display, filtering & sorting might be useful. For example, to get the latest reference, I would like to sort DESC on a createdAt field. But I can't because the ASC order is hard coded here.
Would you accept a PR on this feature?
The text was updated successfully, but these errors were encountered:
The doc currently says:
But actually it could be used to display only one record of many references (eg the latest reference of a record). To choose the right record to display, filtering & sorting might be useful. For example, to get the latest reference, I would like to sort DESC on a createdAt field. But I can't because the ASC order is hard coded here.
Would you accept a PR on this feature?
The text was updated successfully, but these errors were encountered: