Closed jerrygreen closed 5 years ago
For render method I can use something like this (example from official doc):
fields: { users: [:name, :email], posts: [:title, :content] }
But I can't use this, right?
fields: { users: [:name, :email], posts: [:title, :content, data: [:additional_info, :some_key]] }
Why? I want that filtering for json/jsonb columns ;(
A bit late but: the reason is simply that the json:api spec does not allow the above to be expressed via the fields query parameter. You could do multiple serializers.
fields
For render method I can use something like this (example from official doc):
But I can't use this, right?
Why? I want that filtering for json/jsonb columns ;(