Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Indicates exactly one field must be supplied and this field must not be `null`.
- """
- directive @oneOf on INPUT_OBJECT
- input AdminUserInput {
- email: String!
- }
- """How CPU usage should be returned"""
- enum CpuState {
- FREE
- IN_USE
- }
- input CreateTodoInputDto {
- assignedToId: ID
- content: String!
- createdById: ID!
- title: String!
- }
- input CreateUserInputDto {
- username: String!
- }
- input DefineUserInput {
- admin: AdminUserInput
- moderator: ModeratorUserInput
- }
- input ModeratorUserInput {
- accessRights: [String!]!
- email: String!
- }
- type Mutation {
- createTodo(input: CreateTodoInputDto!): Todo!
- createUser(input: CreateUserInputDto!): User!
- test(input: TestInput!): Boolean!
- testOneOf(input: DefineUserInput!): Boolean!
- }
- type Query {
- getTodo(id: ID!): Todo
- }
- input SomeField {
- some: Float!
- }
- type Subscription {
- greet: String!
- top: Top!
- }
- input TestInput {
- someField: SomeField!
- }
- type Todo {
- AssignedTo: User!
- CreatedBy: User!
- assignedToId: ID!
- content: String!
- createdAt: String!
- createdById: ID!
- id: ID!
- title: String!
- updatedAt: String!
- }
- type Top {
- """Server's CPU usage."""
- cpu(cpuState: CpuState!): Int!
- """Server's memory usage."""
- memory(unit: Unit!): Float!
- }
- """Supported units for stats"""
- enum Unit {
- BYTE
- GIGABYTE
- KILOBYTE
- MEGABYTE
- }
- type User {
- createdAt: String!
- id: ID!
- updatedAt: String!
- username: String!
- }
Advertisement
Add Comment
Please, Sign In to add comment