Last active
January 18, 2025 19:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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