refine icon indicating copy to clipboard operation
refine copied to clipboard

[FEAT] support _not operator query for hasura data provider

Open nbourdin opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

I tried to make the following query with filters and hasura data provider

query query {
  event(where: {_not: {group_event: {event__id: {_is_null: false}}}}, limit: 10) {
    id
    group_event {
      event__id
    }
  }
}

But the "not" operator doesn't seem to be supported in filter management (https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#crudfilters).

Describe alternatives you've considered

I used the graphql query in the meta field https://refine.dev/docs/data/packages/hasura/#developer-experience

Additional context

No response

Describe the thing to improve

Implements the not operator ?

nbourdin avatar Feb 26 '24 21:02 nbourdin

Hey @nbourdin thanks for the issue! We are open to contributions from the community. I guess the changes needs to be done here: https://github.com/refinedev/refine/blob/master/packages/hasura/src/utils/generateFilters.ts

BatuhanW avatar Feb 28 '24 06:02 BatuhanW

I'm happy to take a look at this one @BatuhanW.

rilrom avatar Feb 28 '24 13:02 rilrom

Hey @rilrom assigned to you. Please take a good look at our contributing guide and do not create pull requests until you complete all the requirements in the PR description.

BatuhanW avatar Feb 28 '24 14:02 BatuhanW