Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.

Mutations working correctly now with 'AndFetchById' methods#34

Open
Trellian wants to merge 6 commits into
Vincit:masterfrom
Trellian:Mutations
Open

Mutations working correctly now with 'AndFetchById' methods#34
Trellian wants to merge 6 commits into
Vincit:masterfrom
Trellian:Mutations

Conversation

@Trellian

@Trellian Trellian commented Dec 6, 2017

Copy link
Copy Markdown

caveats: The id field for the record must be named in your model as id,
and must be supplied as a filter operation in the GraphQL query as idEq
for this to work.

The following operations are available:

createXXXX
updateXXXX	- For whole record updates
patchXXXX - For partial record Updates
deleteXXXX

eg:
mutation regionUpdate ($Id: Int!, $CountryId: Int!, $Name: String!) {
  updateIwRegion (idEq: $Id, country_id: $CountryId, name: $Name) {
    country_id
    name
  }
}

The selector fields which select which record(s) must use the extra field operation syntax in the parameters for the mutation.
eg: idEq: $Id

Other parameters are the fields that will be used to update the record fields.
eg: country_id: $CountryId and name: $Name
…ersions.

The id field for the record must be named in your model as `id`,
and must be supplied as a filter operation in the GraphQL query as `idEq`
for this to work.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant