Skip to content

Instantly share code, notes, and snippets.

@dsandip
Last active August 12, 2021 16:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsandip/8b1b4aa87708289d4c9f8fd9621eb025 to your computer and use it in GitHub Desktop.
Save dsandip/8b1b4aa87708289d4c9f8fd9621eb025 to your computer and use it in GitHub Desktop.
Sample file with queries and mutations that can be used to populate an allow-list
# will be ignored by the allow-list
type Starship {
id: ID!
name: String!
length(unit: LengthUnit = METER): Float
}
# will be ignored by the allow-list
scalar parsec
# will be ignored by the allow-list
enum Episode {
NEWHOPE
EMPIRE
JEDI
}
# will be stored in the allow-list
query getAuthors {
author {
id
name
}
}
fragment frag on Starship {
name
}
# will be stored in the allow-list
query getArticles {
article {
id
title
}
}
# will be stored in the allow-list after patching in the fragment
query getArticle {
article {
id
title
...frag
}
}
# will be stored in the allow-list
mutation addArticles {
insert_articles {
id
title
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment