Skip to content

0.17.0

Compare
Choose a tag to compare
@woylie woylie released this 25 Aug 15:23
· 593 commits to main since this release
43385ab

Added

  • Added the filter operators not_in and not_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"])