# This file is automatically generated by Keystone, do not modify it manually. # Modify your Keystone config when you want to change this. type Post { id: ID! title: String content: String author: Author } input PostWhereUniqueInput { id: ID } input PostWhereInput { AND: [PostWhereInput!] OR: [PostWhereInput!] NOT: [PostWhereInput!] id: IDFilter title: StringFilter content: StringFilter author: AuthorWhereInput } input IDFilter { equals: ID in: [ID!] notIn: [ID!] lt: ID lte: ID gt: ID gte: ID not: IDFilter } input StringFilter { equals: String in: [String!] notIn: [String!] lt: String lte: String gt: String gte: String contains: String startsWith: String endsWith: String mode: QueryMode not: NestedStringFilter } enum QueryMode { default insensitive } input NestedStringFilter { equals: String in: [String!] notIn: [String!] lt: String lte: String gt: String gte: String contains: String startsWith: String endsWith: String not: NestedStringFilter } input PostOrderByInput { id: OrderDirection title: OrderDirection content: OrderDirection } enum OrderDirection { asc desc } input PostUpdateInput { title: String content: String author: AuthorRelateToOneForUpdateInput } input AuthorRelateToOneForUpdateInput { create: AuthorCreateInput connect: AuthorWhereUniqueInput disconnect: Boolean } input PostUpdateArgs { where: PostWhereUniqueInput! data: PostUpdateInput! } input PostCreateInput { title: String content: String author: AuthorRelateToOneForCreateInput } input AuthorRelateToOneForCreateInput { create: AuthorCreateInput connect: AuthorWhereUniqueInput } type Author { id: ID! name: String email: String posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] postsCount(where: PostWhereInput! = {}): Int } input AuthorWhereUniqueInput { id: ID email: String } input AuthorWhereInput { AND: [AuthorWhereInput!] OR: [AuthorWhereInput!] NOT: [AuthorWhereInput!] id: IDFilter name: StringFilter email: StringFilter posts: PostManyRelationFilter } input PostManyRelationFilter { every: PostWhereInput some: PostWhereInput none: PostWhereInput } input AuthorOrderByInput { id: OrderDirection name: OrderDirection email: OrderDirection } input AuthorUpdateInput { name: String email: String posts: PostRelateToManyForUpdateInput } input PostRelateToManyForUpdateInput { disconnect: [PostWhereUniqueInput!] set: [PostWhereUniqueInput!] create: [PostCreateInput!] connect: [PostWhereUniqueInput!] } input AuthorUpdateArgs { where: AuthorWhereUniqueInput! data: AuthorUpdateInput! } input AuthorCreateInput { name: String email: String posts: PostRelateToManyForCreateInput } input PostRelateToManyForCreateInput { create: [PostCreateInput!] connect: [PostWhereUniqueInput!] set: [PostWhereUniqueInput!] } """ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). """ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf") type Mutation { createPost(data: PostCreateInput!): Post createPosts(data: [PostCreateInput!]!): [Post] updatePost(where: PostWhereUniqueInput!, data: PostUpdateInput!): Post updatePosts(data: [PostUpdateArgs!]!): [Post] deletePost(where: PostWhereUniqueInput!): Post deletePosts(where: [PostWhereUniqueInput!]!): [Post] createAuthor(data: AuthorCreateInput!): Author createAuthors(data: [AuthorCreateInput!]!): [Author] updateAuthor(where: AuthorWhereUniqueInput!, data: AuthorUpdateInput!): Author updateAuthors(data: [AuthorUpdateArgs!]!): [Author] deleteAuthor(where: AuthorWhereUniqueInput!): Author deleteAuthors(where: [AuthorWhereUniqueInput!]!): [Author] } type Query { post(where: PostWhereUniqueInput!): Post posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] postsCount(where: PostWhereInput! = {}): Int author(where: AuthorWhereUniqueInput!): Author authors(where: AuthorWhereInput! = {}, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] authorsCount(where: AuthorWhereInput! = {}): Int keystone: KeystoneMeta! searchPosts(query: String!): [Post!] } type KeystoneMeta { adminMeta: KeystoneAdminMeta! } type KeystoneAdminMeta { lists: [KeystoneAdminUIListMeta!]! list(key: String!, itemId: ID): KeystoneAdminUIListMeta } type KeystoneAdminUIListMeta { key: String! label: String! singular: String! plural: String! path: String! labelField: String! fields: [KeystoneAdminUIFieldMeta!]! groups: [KeystoneAdminUIFieldGroupMeta!]! actions: [KeystoneAdminUIActionMeta!]! graphql: KeystoneAdminUIGraphQL! pageSize: Int! initialColumns: [String!]! initialSearchFields: [String!]! initialSort: KeystoneAdminUISort initialFilter: JSON hiddenFilter: JSON isSingleton: Boolean! hideNavigation: Boolean! hideCreate: Boolean! hideDelete: Boolean! } type KeystoneAdminUIFieldMeta { key: String! label: String! description: String isOrderable: Boolean! isFilterable: Boolean! isNonNull: [KeystoneAdminUIFieldMetaIsNonNull!] fieldMeta: JSON viewsIndex: Int! customViewsIndex: Int createView: KeystoneAdminUIFieldMetaCreateView! itemView: KeystoneAdminUIFieldMetaItemView listView: KeystoneAdminUIFieldMetaListView! search: QueryMode } enum KeystoneAdminUIFieldMetaIsNonNull { read create update } type KeystoneAdminUIFieldMetaCreateView { fieldMode: JSON! isRequired: JSON! } type KeystoneAdminUIFieldMetaItemView { fieldMode: JSON! fieldPosition: KeystoneAdminUIFieldMetaItemViewFieldPosition! isRequired: JSON! } enum KeystoneAdminUIFieldMetaItemViewFieldPosition { form sidebar } type KeystoneAdminUIFieldMetaListView { fieldMode: KeystoneAdminUIFieldMetaListViewFieldMode! } enum KeystoneAdminUIFieldMetaListViewFieldMode { read hidden } type KeystoneAdminUIFieldGroupMeta { label: String! description: String fields: [KeystoneAdminUIFieldMeta!]! } type KeystoneAdminUIActionMeta { key: String! label: String! icon: String messages: KeystoneAdminUIActionMetaMessages! graphql: KeystoneAdminUIActionMetaGraphQL itemView: KeystoneAdminUIActionMetaItemView listView: KeystoneAdminUIActionMetaListView! } type KeystoneAdminUIActionMetaMessages { promptTitle: String! promptTitleMany: String prompt: String! promptMany: String promptConfirmLabel: String! promptConfirmLabelMany: String fail: String! failMany: String success: String! successMany: String } type KeystoneAdminUIActionMetaGraphQL { arguments: [KeystoneAdminUIActionMetaGraphQLArgument!]! names: KeystoneAdminUIActionMetaGraphQLNames! } type KeystoneAdminUIActionMetaGraphQLArgument { name: String! type: String! source: JSON } type KeystoneAdminUIActionMetaGraphQLNames { one: String! many: String } type KeystoneAdminUIActionMetaItemView { actionMode: JSON! navigation: KeystoneAdminUIActionMetaItemViewNavigation! hidePrompt: Boolean! hideToast: Boolean! } enum KeystoneAdminUIActionMetaItemViewNavigation { follow refetch return } type KeystoneAdminUIActionMetaListView { actionMode: JSON! } type KeystoneAdminUIGraphQL { names: KeystoneAdminUIGraphQLNames! } type KeystoneAdminUIGraphQLNames { outputTypeName: String! whereInputName: String! whereUniqueInputName: String! createInputName: String! createMutationName: String! createManyMutationName: String! relateToOneForCreateInputName: String! relateToManyForCreateInputName: String! itemQueryName: String! listOrderName: String! listQueryCountName: String! listQueryName: String! updateInputName: String! updateMutationName: String! updateManyInputName: String! updateManyMutationName: String! relateToOneForUpdateInputName: String! relateToManyForUpdateInputName: String! deleteMutationName: String! deleteManyMutationName: String! } type KeystoneAdminUISort { field: String! direction: KeystoneAdminUISortDirection! } enum KeystoneAdminUISortDirection { ASC DESC }