Skip to content

Instantly share code, notes, and snippets.

@xperiandri
Last active February 13, 2022 22:10
Show Gist options
  • Save xperiandri/920c5de86a100a30806c8596b8f3a8a1 to your computer and use it in GitHub Desktop.
Save xperiandri/920c5de86a100a30806c8596b8f3a8a1 to your computer and use it in GitHub Desktop.
mutation grupo ($id: GrupoID!
$name: GrupoName!
$description: String
$imageURL: GrupoImageURL!) {
grupo (id: $id) {
// Intercept AST and handle its processing / Перехватываем AST и обрабаываем сами
patch {
description (description: $description) // return null or error for field / возвращаем null или ошибку по полю
imageURL (imageURL: $imageURL) // return null or error for field / возвращаем null или ошибку по полю
name (name: $name) // return null or error for field / возвращаем null или ошибку по полю
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment