jsonapi-query_builder 0.3.0
`Jsonapi::QueryBuilder` serves the purpose of adding the json api query related SQL conditions to the already scoped collection, usually used in controller index actions. With the query builder we can easily define logic for query filters, attributes by which we can sort, and delegate pagination parameters to the underlying paginator. Included relationships are automatically included via the `ActiveRecord::QueryMethods#includes`, to prevent N+1 query problems.
Gemfile:
=
复制到剪贴板
已复制!
安装:
=
Runtime 依赖 (2):
activerecord
>= 5
pagy
>= 3.5
Development 依赖 (12):
activerecord
>= 0
bundler
~> 2.0
bundler-audit
>= 0
kaminari
~> 1.2
lefthook
>= 0
pry
>= 0
rake
~> 13.0
rspec
~> 3.0
rubocop-rspec
>= 0
sqlite3
>= 0
standard
>= 0
standardrb
>= 0