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

How can I query a record or a list of records with exact matching property values? #1655

Open
eakenbor opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eakenbor
Copy link

eakenbor commented Apr 9, 2024

Contact Details

No response

What happened?

I want a situation where only the record or records with the exact property match are returned, instead of those with partial match. For instance, if a record has a property name "field1" and the property value for that that "field1" is "abcdef". If the input value is "abc", that record should not be returned. It should only be returned when the input value is exactly "abcdef".

What I did below does not work. Please how can I achieve this?

const api = new ApiClient()
  api
      .resourceAction({
        resourceId: 'User',
        actionName: 'search',
        query: email,
        params: {
          'filters.email': props.record.params.email
        }
      })
.then(...)

Bug prevalence

Every time

AdminJS dependencies version

"adminjs": "^7.0.5",

What browsers do you see the problem on?

No response

Relevant log output

No response

Relevant code that's giving you issues

No response

@eakenbor eakenbor added the bug Something isn't working label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant