Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag conditions for whereJsonContains and whereJsonDoesntContain #910

Open
jacksleight opened this issue Nov 10, 2022 · 0 comments · May be fixed by statamic/cms#9491
Open

Tag conditions for whereJsonContains and whereJsonDoesntContain #910

jacksleight opened this issue Nov 10, 2022 · 0 comments · May be fixed by statamic/cms#9491

Comments

@jacksleight
Copy link

jacksleight commented Nov 10, 2022

I could have just missed it, but I don't think there's currently a way to do whereJsonContains or whereJsonDoesntContain queries with tag conditions? contains and doesnt_contain aways do a string based like comparison.

Perhaps there could be something like:

{{ collection related:json_contains="id" }}
{{ collection related:json_doesnt_contain ="id" }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant