Skip to content

Changing the type on 'update' and 'delete'Β #44

@ani-sha

Description

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

update or delete might return null in cases where it doesn't match the condition, also it can change a couple of rows instead of one. Suggested definition:

type Mutation {
 updateNote(input: MutateNoteInput!, filter: UpdateNoteFilter): [Note]
}

The same goes for delete.

cc: @rareddy @wtrocki @machi1990

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