Skip to content

Instantly share code, notes, and snippets.

@AaronHarris
Created November 29, 2022 00:04
Show Gist options
  • Save AaronHarris/7d0a310e0ae7bad6d70084bbf57a26b6 to your computer and use it in GitHub Desktop.
Save AaronHarris/7d0a310e0ae7bad6d70084bbf57a26b6 to your computer and use it in GitHub Desktop.
Advanced GraphQL Schema
type Post {
id: ID!
title: String!
title2: String!
}
type Query {
# Get a single value of type 'Post' by primary key.
singlePost(id: ID!): Post
@deprecated(reason: "Use localization field instead")
"documentation string"
myPost: Post
post2(id: ID!): AWSJSON
"""
block string
"""
newthing: AWSJSON
callLambda: String
}
enum TestEnum {
HAHA # Comment
}
schema {
query: Query
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment