0.17.0
Added
- Added the filter operators
not_in
andnot_contains
. - Added examples for integration with Relay to the documentation.
- Added examples for the parameter format to the documentation.
Changed
- Refactored the query builder. This does not affect users of the library, but
makes the code base more readable and lays the groundwork for upcoming
features. - Added the
:query_opts
option to Flop callbacks to pass on options to the
Ecto repo on query execution. If you are already using the:prefix
option
you now have to pass this through:query_opts
.
If you configured the Repo :prefix
in the application config:
config :flop,
- prefix: "some-prefix"
+ query_opts: [prefix: "some-prefix"]
If you set the :prefix
when calling the Flop functions:
- Flop.validate_and_run(Pet, params, prefix: "some-prefix")
+ Flop.validate_and_run(Pet, params, query_opts: [prefix: "some-prefix"])