|
| 1 | +schema { |
| 2 | + query: DifferentScope |
| 3 | +} |
| 4 | + |
| 5 | +type Author { |
| 6 | + id: Int! |
| 7 | + name: String |
| 8 | + books: [Book!]! |
| 9 | +} |
| 10 | + |
| 11 | +type Book { |
| 12 | + id: Int! |
| 13 | + authorId: Int! |
| 14 | + title: String |
| 15 | + author: Author |
| 16 | +} |
| 17 | + |
| 18 | +"A connection to a list of items." |
| 19 | +type BookConnection { |
| 20 | + "Information to aid in pagination." |
| 21 | + pageInfo: PageInfo! |
| 22 | + "A list of edges." |
| 23 | + edges: [BookEdge!] |
| 24 | + "A flattened list of the nodes." |
| 25 | + nodes: [Book!] |
| 26 | +} |
| 27 | + |
| 28 | +"An edge in a connection." |
| 29 | +type BookEdge { |
| 30 | + "A cursor for use in pagination." |
| 31 | + cursor: String! |
| 32 | + "The item at the end of the edge." |
| 33 | + node: Book! |
| 34 | +} |
| 35 | + |
| 36 | +type DifferentScope { |
| 37 | + books(first: Int after: String last: Int before: String where: Foo_BookFilterInput order: [Foo_BookSortInput!]): BookConnection |
| 38 | +} |
| 39 | + |
| 40 | +"Information about pagination in a connection." |
| 41 | +type PageInfo { |
| 42 | + "Indicates whether more edges exist following the set defined by the clients arguments." |
| 43 | + hasNextPage: Boolean! |
| 44 | + "Indicates whether more edges exist prior the set defined by the clients arguments." |
| 45 | + hasPreviousPage: Boolean! |
| 46 | + "When paginating backwards, the cursor to continue." |
| 47 | + startCursor: String |
| 48 | + "When paginating forwards, the cursor to continue." |
| 49 | + endCursor: String |
| 50 | +} |
| 51 | + |
| 52 | +input Foo_AuthorFilterInput { |
| 53 | + and: [Foo_AuthorFilterInput!] |
| 54 | + or: [Foo_AuthorFilterInput!] |
| 55 | + id: Foo_ComparableInt32OperationFilterInput |
| 56 | + name: Foo_StringOperationFilterInput |
| 57 | + books: Foo_ListFilterInputTypeOfBookFilterInput |
| 58 | +} |
| 59 | + |
| 60 | +input Foo_AuthorSortInput { |
| 61 | + id: Foo_SortEnumType |
| 62 | + name: Foo_SortEnumType |
| 63 | +} |
| 64 | + |
| 65 | +input Foo_BookFilterInput { |
| 66 | + and: [Foo_BookFilterInput!] |
| 67 | + or: [Foo_BookFilterInput!] |
| 68 | + id: Foo_ComparableInt32OperationFilterInput |
| 69 | + authorId: Foo_ComparableInt32OperationFilterInput |
| 70 | + title: Foo_StringOperationFilterInput |
| 71 | + author: Foo_AuthorFilterInput |
| 72 | +} |
| 73 | + |
| 74 | +input Foo_BookSortInput { |
| 75 | + id: Foo_SortEnumType |
| 76 | + authorId: Foo_SortEnumType |
| 77 | + title: Foo_SortEnumType |
| 78 | + author: Foo_AuthorSortInput |
| 79 | +} |
| 80 | + |
| 81 | +input Foo_ComparableInt32OperationFilterInput { |
| 82 | + eq: Int |
| 83 | + neq: Int |
| 84 | + in: [Int!] |
| 85 | + nin: [Int!] |
| 86 | + gt: Int |
| 87 | + ngt: Int |
| 88 | + gte: Int |
| 89 | + ngte: Int |
| 90 | + lt: Int |
| 91 | + nlt: Int |
| 92 | + lte: Int |
| 93 | + nlte: Int |
| 94 | +} |
| 95 | + |
| 96 | +input Foo_ListFilterInputTypeOfBookFilterInput { |
| 97 | + all: Foo_BookFilterInput |
| 98 | + none: Foo_BookFilterInput |
| 99 | + some: Foo_BookFilterInput |
| 100 | + any: Boolean |
| 101 | +} |
| 102 | + |
| 103 | +input Foo_StringOperationFilterInput { |
| 104 | + and: [Foo_StringOperationFilterInput!] |
| 105 | + or: [Foo_StringOperationFilterInput!] |
| 106 | + eq: String |
| 107 | + neq: String |
| 108 | + contains: String |
| 109 | + ncontains: String |
| 110 | + in: [String] |
| 111 | + nin: [String] |
| 112 | + startsWith: String |
| 113 | + nstartsWith: String |
| 114 | + endsWith: String |
| 115 | + nendsWith: String |
| 116 | +} |
| 117 | + |
| 118 | +enum Foo_SortEnumType { |
| 119 | + ASC |
| 120 | + DESC |
| 121 | +} |
| 122 | + |
| 123 | +"The `@defer` directive may be provided for fragment spreads and inline fragments to inform the executor to delay the execution of the current fragment to indicate deprioritization of the current fragment. A query with `@defer` directive will cause the request to potentially return multiple responses, where non-deferred data is delivered in the initial response and data deferred is delivered in a subsequent response. `@include` and `@skip` take precedence over `@defer`." |
| 124 | +directive @defer("If this argument label has a value other than null, it will be passed on to the result of this defer directive. This label is intended to give client applications a way to identify to which fragment a deferred result belongs to." label: String "Deferred when true." if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT |
| 125 | + |
| 126 | +"The `@stream` directive may be provided for a field of `List` type so that the backend can leverage technology such as asynchronous iterators to provide a partial list in the initial response, and additional list items in subsequent responses. `@include` and `@skip` take precedence over `@stream`." |
| 127 | +directive @stream("If this argument label has a value other than null, it will be passed on to the result of this stream directive. This label is intended to give client applications a way to identify to which fragment a streamed result belongs to." label: String "The initial elements that shall be send down to the consumer." initialCount: Int! "Streamed when true." if: Boolean!) on FIELD |
0 commit comments