Skip to content

Name conflict between 'filter' and 'where'Β #43

@ani-sha

Description

@ani-sha
type Mutation {
  updateNote(input: MutateNoteInput!, where: UpdateNoteFilter): Note!
}

We have been using filter in GraphQL CRUD Java and encountered this conflict, where and filter function the same.
where sounds more SQL specific, can be replaced with filter in GraphQL CRUD spec.

IMO, a delete should not require an input argument name, it should be filter.

type Mutation {
    deleteNote(input: MutateNoteInput!): Note
}

Suggested type defination:

type Mutation {
    deleteNote(filter: UpdateNoteFilter!): Note
}

cc: @wtrocki @machi1990 @rareddy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions