json_api_query_builder v1.0.2 JsonApiQueryBuilder.Fields View Source

Sparse fieldset operations for JsonApiQueryBuilder

Link to this section Summary

Functions

Applies sparse fieldset selection from a parsed JSON-API request to an Ecto.Queryable.t

Link to this section Functions

Link to this function fields(query, params, callback, list) View Source
fields(Ecto.Queryable.t(), map(), function(), [{:type, String.t()}]) :: Ecto.Queryable.t()

Applies sparse fieldset selection from a parsed JSON-API request to an Ecto.Queryable.t

The given callback will be used to map from API field name strings to Ecto schema atoms.