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
AMS allow to provide metadata, like number of total pages by passing the :meta key to render:
renderjson: posts,meta: {page:4,total_pages: 5}
We could support this in postgres_ext-serializers by converting meta to JSON and selecting it as a ::json column in postgres via an additional CTE that can be joined to the final result.
Another approach would be to provide a way to generate meta data entirely in the database, which would be faster, but it would probably be harder to implement and less flexible.
The text was updated successfully, but these errors were encountered:
AMS allow to provide metadata, like number of total pages by passing the
:meta
key torender
:We could support this in postgres_ext-serializers by converting meta to JSON and selecting it as a
::json
column in postgres via an additional CTE that can be joined to the final result.Another approach would be to provide a way to generate meta data entirely in the database, which would be faster, but it would probably be harder to implement and less flexible.
The text was updated successfully, but these errors were encountered: