Skip to content

Seperate input types for Create vs Update? #42

@ani-sha

Description

@ani-sha

GraphQL CRUD defines separate input types for create and update or delete. Can we use the conditional update as default which specifies both input and where and proceed with maybe a single mutate type?

Input type for create :

type Mutation {
  createNote(input: CreateNoteInput!): Note
}

Input type for update :

type Mutation {
    updateNote(input: MutateNoteInput!): 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