Skip to content

Instantly share code, notes, and snippets.

@ambientlight
Created April 24, 2019 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambientlight/8df0f2677bf0ed56e557db8a85a403bd to your computer and use it in GitHub Desktop.
Save ambientlight/8df0f2677bf0ed56e557db8a85a403bd to your computer and use it in GitHub Desktop.
amplify_example_generated.graphql
type Blog {
id: ID!
name: String!
posts(filter: ModelPostFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelPostConnection
}
type Post {
id: ID!
title: String!
blog: Blog
comments(filter: ModelCommentFilterInput, sortDirection: ModelSortDirection, limit: Int, nextToken: String): ModelCommentConnection
}
type Comment {
id: ID!
content: String
post: Post
}
type Query {
echo(msgP1: String, msgP2: String): String
magic(msgP1: String, msgP2: String): String
getBlog(id: ID!): Blog
listBlogs(filter: ModelBlogFilterInput, limit: Int, nextToken: String): ModelBlogConnection
getPost(id: ID!): Post
listPosts(filter: ModelPostFilterInput, limit: Int, nextToken: String): ModelPostConnection
getComment(id: ID!): Comment
listComments(filter: ModelCommentFilterInput, limit: Int, nextToken: String): ModelCommentConnection
}
enum ModelSortDirection {
ASC
DESC
}
type ModelBlogConnection {
items: [Blog]
nextToken: String
}
input ModelStringFilterInput {
ne: String
eq: String
le: String
lt: String
ge: String
gt: String
contains: String
notContains: String
between: [String]
beginsWith: String
}
input ModelIDFilterInput {
ne: ID
eq: ID
le: ID
lt: ID
ge: ID
gt: ID
contains: ID
notContains: ID
between: [ID]
beginsWith: ID
}
input ModelIntFilterInput {
ne: Int
eq: Int
le: Int
lt: Int
ge: Int
gt: Int
contains: Int
notContains: Int
between: [Int]
}
input ModelFloatFilterInput {
ne: Float
eq: Float
le: Float
lt: Float
ge: Float
gt: Float
contains: Float
notContains: Float
between: [Float]
}
input ModelBooleanFilterInput {
ne: Boolean
eq: Boolean
}
input ModelBlogFilterInput {
id: ModelIDFilterInput
name: ModelStringFilterInput
and: [ModelBlogFilterInput]
or: [ModelBlogFilterInput]
not: ModelBlogFilterInput
}
input CreateBlogInput {
id: ID
name: String!
}
input UpdateBlogInput {
id: ID!
name: String
}
input DeleteBlogInput {
id: ID
}
type Mutation {
createBlog(input: CreateBlogInput!): Blog
updateBlog(input: UpdateBlogInput!): Blog
deleteBlog(input: DeleteBlogInput!): Blog
createPost(input: CreatePostInput!): Post
updatePost(input: UpdatePostInput!): Post
deletePost(input: DeletePostInput!): Post
createComment(input: CreateCommentInput!): Comment
updateComment(input: UpdateCommentInput!): Comment
deleteComment(input: DeleteCommentInput!): Comment
}
type Subscription {
onCreateBlog: Blog @aws_subscribe(mutations: ["createBlog"])
onUpdateBlog: Blog @aws_subscribe(mutations: ["updateBlog"])
onDeleteBlog: Blog @aws_subscribe(mutations: ["deleteBlog"])
onCreatePost: Post @aws_subscribe(mutations: ["createPost"])
onUpdatePost: Post @aws_subscribe(mutations: ["updatePost"])
onDeletePost: Post @aws_subscribe(mutations: ["deletePost"])
onCreateComment: Comment @aws_subscribe(mutations: ["createComment"])
onUpdateComment: Comment @aws_subscribe(mutations: ["updateComment"])
onDeleteComment: Comment @aws_subscribe(mutations: ["deleteComment"])
}
type ModelPostConnection {
items: [Post]
nextToken: String
}
input ModelPostFilterInput {
id: ModelIDFilterInput
title: ModelStringFilterInput
and: [ModelPostFilterInput]
or: [ModelPostFilterInput]
not: ModelPostFilterInput
}
input CreatePostInput {
id: ID
title: String!
postBlogId: ID
}
input UpdatePostInput {
id: ID!
title: String
postBlogId: ID
}
input DeletePostInput {
id: ID
}
type ModelCommentConnection {
items: [Comment]
nextToken: String
}
input ModelCommentFilterInput {
id: ModelIDFilterInput
content: ModelStringFilterInput
and: [ModelCommentFilterInput]
or: [ModelCommentFilterInput]
not: ModelCommentFilterInput
}
input CreateCommentInput {
id: ID
content: String
commentPostId: ID
}
input UpdateCommentInput {
id: ID!
content: String
commentPostId: ID
}
input DeleteCommentInput {
id: ID
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment