Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface Node {
- id: ID!
- }
- type User {
- id: ID!
- username: String!
- aliasname: String
- email: String
- brithday: Date
- posts: [Post!]!
- }
- type Post implements Node {
- id: ID!
- title: String!
- text: String!
- isPublished: Boolean!
- author: User!
- createdAt: DateTime!
- updatedAt: DateTime!
- deletedAt: DateTime!
- }
- type Query {
- me: User
- user(id: ID!): User
- feed: [Post!]!
- drafts: [Post!]!
- post(id: ID!): Post
- }
- type Mutation {
- signup(email: String!, password: String!, username: String!): User!
- login(email: String!, password: String!): User!
- publish(id: ID!): Post!
- deletePost(id: ID!): Post!
- }
- ### all
- type Query {
- feed: [Post!]!
- drafts: [Post!]!
- post(id: ID!): Post
- me: User
- }
- enum MutationType {
- CREATED
- UPDATED
- DELETED
- }
- type PageInfo {
- hasNextPage: Boolean!
- hasPreviousPage: Boolean!
- startCursor: String
- endCursor: String
- }
Add Comment
Please, Sign In to add comment