nexus/examples/kitchen-sink/kitchen-sink-schema.graphql

330 lines
5.9 KiB
GraphQL

### This file was generated by Nexus Schema
### Do not make changes to this file directly
"""
Bar description
"""
interface Bar {
argsTest(a: InputType = { answer: 2, key: "one" }): Boolean
ok: Boolean @deprecated(reason: "Not ok?")
}
interface Baz {
"""
'A' description
"""
a: Bar
ok: Boolean
}
type BooleanConnection {
"""
https://relay.dev/graphql/connections.htm#sec-Edge-Types
"""
edges: [BooleanEdge]
"""
https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
}
type BooleanEdge {
"""
https://relay.dev/graphql/connections.htm#sec-Cursor
"""
cursor: String!
"""
https://relay.dev/graphql/connections.htm#sec-Node
"""
node: Boolean
}
type ComplexObject {
id: ID
}
scalar Date
type DateConnection {
"""
https://relay.dev/graphql/connections.htm#sec-Edge-Types
"""
edges: [DateEdge]
"""
https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
}
type DateEdge {
"""
https://relay.dev/graphql/connections.htm#sec-Cursor
"""
cursor: String!
"""
https://relay.dev/graphql/connections.htm#sec-Node
"""
node: Date
}
type Foo implements Bar {
argsTest(a: InputType = { answer: 2, key: "one" }): Boolean
name: String
ok: Boolean @deprecated(reason: "Not ok?")
}
input InputType {
answer: Int
key: String!
nestedInput: InputType2
}
input InputType2 {
answer: Int
key: String!
someDate: Date!
}
type Mutation {
ok: Boolean
someMutationField(id: ID!): Foo
}
input NestedType {
veryNested: String
}
interface Node {
data: Node
id: ID
}
"""
PageInfo cursor, as defined in https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
type PageInfo {
"""
The cursor corresponding to the last nodes in edges. Null if the connection is empty.
"""
endCursor: String
"""
Used to indicate whether more edges exist following the set defined by the clients arguments.
"""
hasNextPage: Boolean!
"""
Used to indicate whether more edges exist prior to the set defined by the clients arguments.
"""
hasPreviousPage: Boolean!
"""
The cursor corresponding to the first nodes in edges. Null if the connection is empty.
"""
startCursor: String
}
type Query {
asArgExample(testAsArg: InputType!): String
bar: TestObj
booleanConnection(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the first n elements from the list.
"""
first: Int!
): BooleanConnection
complexQuery(count: Int!): [ComplexObject]
dateAsList: [Date]
deprecatedConnection(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the elements in the list that come before the specified cursor
"""
before: String
"""
Returns the first n elements from the list.
"""
first: Int
"""
Returns the last n elements from the list.
"""
last: Int
): BooleanConnection! @deprecated(reason: "Dont use this, use booleanConnection instead")
extended: SomeItem
getNumberOrNull(a: Int!): Int
guardedConnection(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the first n elements from the list.
"""
first: Int!
): DateConnection
inlineArgs(someArg: SomeArg): String
inputAsArgExample(testInput: InputType, testScalar: String): String
protectedField: Int
userConnectionAdditionalArgs(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the first n elements from the list.
"""
first: Int!
"""
If true, filters the users with an odd pk
"""
isEven: Boolean
): UserConnection
userConnectionBackwardOnly(
"""
Returns the elements in the list that come before the specified cursor
"""
before: String
"""
Returns the last n elements from the list.
"""
last: Int!
): UserConnection
userConnectionForwardOnly(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the first n elements from the list.
"""
first: Int!
): UserConnection
"""
A connection with some user nodes
"""
usersConnectionNodes(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the elements in the list that come before the specified cursor
"""
before: String
"""
Returns the first n elements from the list.
"""
first: Int
"""
Returns the last n elements from the list.
"""
last: Int
): UserConnection
usersConnectionResolve(
"""
Returns the elements in the list that come after the specified cursor
"""
after: String
"""
Returns the elements in the list that come before the specified cursor
"""
before: String
"""
Returns the first n elements from the list.
"""
first: Int
"""
Returns the last n elements from the list.
"""
last: Int
): UserConnection
}
input SomeArg {
arg: NestedType
someField: String
}
type SomeItem {
id: ID
}
type SomeNode implements Node {
data: SomeNode
id: ID
}
type TestObj implements Bar & Baz & Node {
"""
'A' description
"""
a: Bar
argsTest(a: InputType = { answer: 2, key: "one" }): Boolean
data: Node
id: ID!
item: String
ok: Boolean
}
union TestUnion = Foo
interface UnusedInterface {
ok: Boolean
}
type User {
id: ID
name: String
}
type UserConnection {
"""
https://relay.dev/graphql/connections.htm#sec-Edge-Types
"""
edges: [UserEdge]
"""
https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
}
type UserEdge {
"""
https://relay.dev/graphql/connections.htm#sec-Cursor
"""
cursor: String!
"""
https://relay.dev/graphql/connections.htm#sec-Node
"""
node: User
}