Skip to content

Shortcut syntax for {_eq:} filter #29

@eric-burel

Description

@eric-burel

Is your feature request related to a problem? Please describe.
Currently you cannot write { input: { filter: { foo: 2}=} in a multi filter. You have to use the _eq operator { input: { filter: { foo: {_eq:2 }}}}.

Describe the solution you'd like
Allow a shortcut syntax for those fields. See the FieldSelector type in packages/graphql/typings.ts, I've commented the native values and only allow a condition.

Describe alternatives you've considered
I think the problem is that you cannot have union types for input in Graphql: it's difficult to accept both an object or a native value as input. To be confirmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions