Skip to content

Conversation

@Trellian
Copy link

@Trellian Trellian commented Dec 6, 2017

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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant