nexus/tests/typegen/schema.gen.graphql

78 lines
1.2 KiB
GraphQL

### This file was generated by Nexus Schema
### Do not make changes to this file directly
directive @TestFieldDirective on FIELD_DEFINITION
input CreatePostInput {
author: ID!
geo: [[Float]!]!
name: String!
}
union ExampleUnion = Post | User
type Mutation {
createPost(input: CreatePostInput!): Post!
registerClick(uuid: UUID): Query!
someList(items: [String]!): [String]!
}
"""
This is a description of a Node
"""
interface Node {
id: ID!
}
enum OrderEnum {
ASC
DESC
}
"""
This is a description of a Post
"""
type Post implements Node {
author: User!
geo: [[Float!]!]!
id: ID!
messyGeo: [[Float!]]
uuid: UUID!
}
input PostFilters {
order: OrderEnum!
search: String = "nexus"
}
type Query {
posts(filters: PostFilters!): [Post!]!
unionField: ExampleUnion!
user: User!
}
enum SomeEnum {
A
B @deprecated(reason: "This is a deprecation reason for B")
}
scalar UUID
type User implements Node {
email: String!
id: ID!
"""
This is a description of a name
"""
name(
"""
And a description of an arg
"""
prefix: String
): String!
outEnum: SomeEnum
phone: String
posts(filters: PostFilters): [Post!]!
}