Skip to content

Instantly share code, notes, and snippets.

@AugustoPedraza
Created December 4, 2019 10:19
Show Gist options
  • Save AugustoPedraza/a2bef1a2ba3486d9a7a78cb6c7ef032a to your computer and use it in GitHub Desktop.
Save AugustoPedraza/a2bef1a2ba3486d9a7a78cb6c7ef032a to your computer and use it in GitHub Desktop.
//
// GQL query
//
mutation test($createMember: CreateMemberViaOptInFormInput) {
createMemberViaOptInForm(input: $createMember) {
member {
createdVia
data
insertedAt
selfData
updatedAt
}
}
}
//
// Variables
//
{
"createMember": {
"memberData": "{\"firstName\":\"Augusto\",\"lastName\":\"Pedraza\",\"zipCode\":\"02111\",\"phoneNumber\":\"+53815709003\"}",
"optInFormId": "123"
}
}
//
// Mutation Result
//
{
"data": {
"createMemberViaOptInForm": {
"member": {
"createdVia": "OPT_IN_FORM",
"data": "{\"firstName\":\"Augusto\",\"lastName\":\"Pedraza\",\"phoneNumber\":\"+5493815709003\",\"zipCode\":\"02111\"}",
"insertedAt": "2019-12-04T10:19:07.596819",
"selfData": null,
"updatedAt": "2019-12-04T10:19:07.596831"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment