Created
October 2, 2023 19:52
-
-
Save LunaticMuch/b0910195dbbbdf39fbf5df3af70425a6 to your computer and use it in GitHub Desktop.
Demo schema for deprecated
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
type Author { | |
firstName: String @deprecated | |
id: Int! @deprecated(reason: "Thrown away") | |
lastName: String | |
posts: [Post!]! | |
} | |
type Comment { | |
comment: String! | |
id: Int! | |
postId: Int! | |
} | |
type Mutation { | |
addComment(comment: String!, postId: Int!): Comment! | |
addPost(authorId: Int!, title: String!): Post! | |
upvotePost(postId: Int!): Post! | |
} | |
type Post { | |
author: Author! | |
comments: [Comment]! | |
id: Int! | |
title: String! | |
votes: Int | |
} | |
type Query { | |
author(id: Int!): Author! | |
comment(id: Int!): Comment! | |
post(id: Int!): Post! | |
} | |
type Subscription { | |
postAdded: Post! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment