You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]
}
Actually, on delete I propose completely removing the Input and only have the filter like
type Mutation {
deleteNote(filter: NoteFilterInput): [Note]
}
there is no need for input as the filter can present with ID to delete a single row or a filter to delete multiple rows. Moreover I like the return that is been done in Hasura like here https://hasura.io/docs/1.0/graphql/core/mutations/delete.html
update
ordelete
might returnnull
in cases where it doesn't match the condition, also it can change a couple of rows instead of one. Suggested definition:The same goes for
delete
.cc: @rareddy @wtrocki @machi1990
The text was updated successfully, but these errors were encountered: