Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Date {
- date: String
- }
- type Result {
- success: Boolean!
- error: Int
- }
- type PostUser {
- name: String!
- }
- type Post {
- id: Int!
- user: PostUser!
- content: String!
- date: Date!
- }
- type ReceivedPost {
- id: Int!
- user: PostUser!
- content: String!
- own: Boolean!
- }
- type OwnReceivedPost {
- id: Int!
- user: PostUser!
- content: String!
- own: Boolean!
- sing: String!
- }
- type CreatingPost {
- content: String!
- }
- type RevertedPost {
- id: Int!
- content: String!
- date: Date!
- sing: String!
- }
- union CommonReceivedPost = ReceivedPost | OwnReceivedPost
- type PostQuery {
- getPosts: CommonReceivedPost
- }
- type PostMutation {
- # addPost(post: CreatingPost): Result
- removePost(id: Int): Result
- # revertPost(post: RevertedPost): Result
- }
- type SecretPost {
- id: Int!
- user: PostUser!
- title: String!
- content: String!
- date: Date!
- }
- type ReceivedSecretPost {
- id: Int!
- user: PostUser!
- title: String!
- content: String!
- own: Boolean!
- }
- type OwnReceivedSecretPost {
- id: Int!
- user: PostUser!
- title: String!
- content: String!
- own: Boolean!
- sing: String!
- }
- type CreatingSecretPost {
- title: String!
- content: String!
- }
- type RevertedSecretPost {
- id: Int!
- title: String!
- content: String!
- date: Date!
- sing: String!
- }
- union CommonReceivedSecretPost = ReceivedSecretPost | OwnReceivedSecretPost
- type SecretPostQuery {
- getPosts: CommonReceivedSecretPost
- }
- type SecretPostMutation {
- addPost(post: CreatingSecretPost): Result
- removePost(id: Int): Result
- # revertPost(post: RevertedSecretPost): Result
- }
- type Query {
- post: PostQuery
- secretPost: SecretPostQuery
- singIn(email: String, password: String): String
- }
- type Mutation {
- post: PostMutation
- secretPost: SecretPostMutation
- singUp(email: String, password: String, captcha: String): String
- }
- schema {
- query: Query
- mutation: Mutation
- }
Add Comment
Please, Sign In to add comment