watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Postgres store `:in` operator support #253

Open gburgett opened 2 years ago

gburgett commented 2 years ago

Add support for the :in operator to the Postgres store

Specifically, support this query from Papyrus:

Papyrus::Property.find_all(categories: { id: { in: blog_post.categories_ids } })

which translates to this CDN query:

/entries?content_type=property&fields.categories.sys.id%5Bin%5D=3snRTIDPQFaAUiLda3QdTc,63V41sK2c5lXhKv3y7bZnH