Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutations working correctly now with 'AndFetchById' methods #34

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Mutations working correctly now with 'AndFetchById' methods #34

wants to merge 6 commits into from

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