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

Support Operator "in" #252

Closed gburgett closed 2 years ago

gburgett commented 2 years ago

Support the :in operators on CDN Adapter

This is required for https://github.com/watermarkchurch/paper-signs/issues/2702 and https://github.com/watermarkchurch/paper-signs/issues/2703 In order to resolve Properties that link to the blog post's Categories, I want to execute this query within a blog post:

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

which should result in a query similar to this:

https://cdn.contentful.com/spaces/xxxxxx/entries?content_type=property&fields.categories.sys.id%5Bin%5D=3snRTIDPQFaAUiLda3QdTc,63V41sK2c5lXhKv3y7bZnH&include=0

I have confirmed that the above query results in the correct data via the Contentful CDN

gburgett commented 2 years ago

Decided I'll do the Postgres store in #251

watermarkchurch-bot commented 2 years ago
1 Warning
:warning: No issue referenced - please create an issue describing a single unit of work and reference it using "closes #[the issue number]"

Generated by :no_entry_sign: Danger

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.2%) to 94.025% when pulling 92c4bef624740802156ba7de7f3b651e3ab02ec0 on operator_in_nin into 6a0280040f10b9e82c671f14a85bec499cb1f6bf on master.