Query an entry by values of a replicator field? #9705
Replies: 1 comment 1 reply
-
You can using json operators. Entry::query()
->where('replicator_field->0->sub_field', 'value')
->get() See #4758 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wondering if I can query an Entry by the values of the replicator field.
I have a collection of products.
It contains a replicator field: Variants
Each of those replicator sets has a variant_id field.
I want to get the Product entry if the Variants Replicator field contains one of X variant ids.
Do you think this can be done or am I pursuing the impossible?
Beta Was this translation helpful? Give feedback.
All reactions