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

Filter operators for null and notnull don't seem to work #1519

Open
eddiesholl opened this issue Jan 15, 2025 · 0 comments
Open

Filter operators for null and notnull don't seem to work #1519

eddiesholl opened this issue Jan 15, 2025 · 0 comments

Comments

@eddiesholl
Copy link
Contributor

Describe the bug
I'm pretty sure the filter operators null and notnull aren't working. I don't think they are understood once they are passed through to mikroorm for execution.

The set of available files that should be supported are listed at https://graphweaver.com/docs/filters-and-operators
The mikroorm filter syntax docs are here https://mikro-orm.io/docs/query-conditions, and there's no mention of null handling

I have tried running a filter like { council_null: true } where council is a field on an entity, and it throws an error as mikroorm tries to prepare the SQL query

To Reproduce
Steps to reproduce the behavior:

  1. Set up a query with a filter using a _null suffix
  2. Execute the query
  3. The query fails at runtime

Expected behavior
The documented filter operators should all be supported

Actual behavior
What actually happened.

Screenshots or Screencasts
If applicable, add screenshots or screencasts to help explain the issue.

Desktop (please complete the following information):

  • OS and version: [e.g. MacOS 13.3.1, Windows 11 v22H2]

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant