We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$in
I know you can use $containsi but it doesn't really achieve what I want.
$containsi
Let's use this example
"page": { "type": "customField", "options": ["My Account:my-account", "Account:account", "Account Edit:account-edit"], "customField": "plugin::multi-select.multi-select" },
filters[page][$in]=account
Does not return any data, even if I have multiple entries that have account selected
account
filters[page][$containsi]=account
Returns any entries that page value includes the account characters and not only the account value
page
[ { "id": 1, "attributes": { "page": [ "my-account" ] } }, { "id": 3, "attributes": { "page": [ "account-edit" ] } }, { "id": 5, "attributes": { "page": [ "account" ] } } ]
[ { "id": 5, "attributes": { "page": [ "account" ] } } ]
At the moment, I can't use this plugin due to this missing feature.
Unless I am missing something. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
A hacky workaround I found for this is using $containsi and wrapping the value in quotes, e.g. [$containsi]="account"
[$containsi]="account"
Sorry, something went wrong.
Is there a timeline for this fix? I will need to drop this plugin if this functionality doesn't exist.
@Pikachews worked for without quotes /api/test?filters[type][$containsi]=type
i guess we won't get updates for Strapi V4...
No branches or pull requests
I know you can use
$containsi
but it doesn't really achieve what I want.Let's use this example
schema.json
HTTP Request
$in
Does not return any data, even if I have multiple entries that have
account
selected$containsi
Returns any entries that
page
value includes theaccount
characters and not only theaccount
valueCurrent Behaviour
Expected Behaviour using
$in
At the moment, I can't use this plugin due to this missing feature.
Unless I am missing something. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: