diff --git a/.github/workflows/tests_ci.yml b/.github/workflows/tests_ci.yml index 0aa38d2003c..491cb9e90cd 100644 --- a/.github/workflows/tests_ci.yml +++ b/.github/workflows/tests_ci.yml @@ -323,7 +323,6 @@ jobs: 'extend-express-app.test.ts', 'extend-graphql-schema-graphql-tools.test.ts', 'extend-graphql-schema-graphql-ts.test.ts', - 'extend-graphql-schema-nexus.test.ts', 'testing.test.ts', 'usecase-blog.test.ts', 'usecase-roles.test.ts', diff --git a/.prettierignore b/.prettierignore index 49b507f604f..70f272b1e1c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,8 +4,6 @@ pnpm-lock.yaml *.md docs/content docs/public -examples/extend-graphql-schema-nexus/keystone-types.ts -examples/extend-graphql-schema-nexus/nexus-types.ts examples/graphql-codegen/gql examples/graphql-gql.tada/tada.generated.d.ts examples/custom-output-paths/my-types.ts diff --git a/docs/content/docs/graphql/overview.md b/docs/content/docs/graphql/overview.md index 6250caef448..d519a156784 100644 --- a/docs/content/docs/graphql/overview.md +++ b/docs/content/docs/graphql/overview.md @@ -51,13 +51,13 @@ This system will generate the following GraphQL API. ```graphql type Query { users( - where: UserWhereInput! = {} + where: UserWhereInput! = { } orderBy: [UserOrderByInput!]! = [] take: Int skip: Int! = 0 ): [User!] user(where: UserWhereUniqueInput!): User - usersCount(where: UserWhereInput! = {}): Int + usersCount(where: UserWhereInput! = { }): Int } type User { @@ -189,7 +189,7 @@ input UserWhereUniqueInput { ```graphql type Query { users( - where: UserWhereInput! = {} + where: UserWhereInput! = { } orderBy: [UserOrderByInput!]! = [] take: Int skip: Int! = 0 @@ -269,7 +269,7 @@ enum OrderDirection { ```graphql type Query { - usersCount(where: UserWhereInput! = {}): Int + usersCount(where: UserWhereInput! = { }): Int } input UserWhereInput { diff --git a/docs/content/docs/guides/schema-extension.md b/docs/content/docs/guides/schema-extension.md index 5867afd1fe3..78180658037 100644 --- a/docs/content/docs/guides/schema-extension.md +++ b/docs/content/docs/guides/schema-extension.md @@ -123,7 +123,4 @@ A full keystone project illustrating how to extend your GraphQL schema using gra {% well heading="Example Project: Extend GraphQL Schema with GraphQL-Tools" href="https://github.com/keystonejs/keystone/tree/main/examples/extend-graphql-schema-graphql-tools" %} A full keystone project illustrating how to extend your GraphQL schema using @graphql-tools/schema. {% /well %} -{% well heading="Example Project: Extend GraphQL Schema with Nexus" href="https://github.com/keystonejs/keystone/tree/main/examples/extend-graphql-schema-nexus" %} -A full keystone project illustrating how to extend your GraphQL schema using Nexus and @graphql-tools/schema. -{% /well %} {% /related-content %} diff --git a/docs/content/examples/extend-graphql-schema-nexus.yaml b/docs/content/examples/extend-graphql-schema-nexus.yaml deleted file mode 100644 index cf157b1d2cd..00000000000 --- a/docs/content/examples/extend-graphql-schema-nexus.yaml +++ /dev/null @@ -1,6 +0,0 @@ -url: https://github.com/keystonejs/keystone/tree/main/examples/extend-graphql-schema-nexus -title: Extend GraphQL API with Nexus -kind: standalone -description: > - Shows you how to use `Nexus` to extend the GraphQL API provided by Keystone - with custom queries and mutations. diff --git a/examples/actions/schema.graphql b/examples/actions/schema.graphql index 9a823890c59..185a8d98ada 100644 --- a/examples/actions/schema.graphql +++ b/examples/actions/schema.graphql @@ -160,8 +160,8 @@ input HideWithReasonPostArgs { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/assets-local/schema.graphql b/examples/assets-local/schema.graphql index b2d242e1949..07f7b2e61b1 100644 --- a/examples/assets-local/schema.graphql +++ b/examples/assets-local/schema.graphql @@ -140,8 +140,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/assets-s3/schema.graphql b/examples/assets-s3/schema.graphql index b2d242e1949..07f7b2e61b1 100644 --- a/examples/assets-s3/schema.graphql +++ b/examples/assets-s3/schema.graphql @@ -140,8 +140,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/auth-magic-link/schema.graphql b/examples/auth-magic-link/schema.graphql index 017083097e5..c6eefa50ca7 100644 --- a/examples/auth-magic-link/schema.graphql +++ b/examples/auth-magic-link/schema.graphql @@ -119,8 +119,8 @@ type UserAuthenticationWithPasswordFailure { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/auth/schema.graphql b/examples/auth/schema.graphql index 45d8f3684ce..6e59d1363d7 100644 --- a/examples/auth/schema.graphql +++ b/examples/auth/schema.graphql @@ -127,8 +127,8 @@ type UserAuthenticationWithPasswordFailure { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/better-list-search/schema.graphql b/examples/better-list-search/schema.graphql index 5c4e969b20f..9468f28849a 100644 --- a/examples/better-list-search/schema.graphql +++ b/examples/better-list-search/schema.graphql @@ -5,10 +5,10 @@ type Post { id: ID! title: String author: Author - related(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - relatedCount(where: PostWhereInput! = {}): Int - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + related(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + relatedCount(where: PostWhereInput! = { }): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int } input PostWhereUniqueInput { @@ -181,8 +181,8 @@ input AuthorCreateInput { type Tag { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -246,14 +246,14 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/byte-encoding/schema.graphql b/examples/byte-encoding/schema.graphql index 73697f27c55..639930ad9af 100644 --- a/examples/byte-encoding/schema.graphql +++ b/examples/byte-encoding/schema.graphql @@ -94,8 +94,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/cloudinary/schema.graphql b/examples/cloudinary/schema.graphql index e107fec8b0f..0b8b29408ee 100644 --- a/examples/cloudinary/schema.graphql +++ b/examples/cloudinary/schema.graphql @@ -158,8 +158,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-admin-ui-logo/schema.graphql b/examples/custom-admin-ui-logo/schema.graphql index e2d52cf232f..8c22d3b5ec8 100644 --- a/examples/custom-admin-ui-logo/schema.graphql +++ b/examples/custom-admin-ui-logo/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -222,11 +222,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-admin-ui-navigation/schema.graphql b/examples/custom-admin-ui-navigation/schema.graphql index e2d52cf232f..8c22d3b5ec8 100644 --- a/examples/custom-admin-ui-navigation/schema.graphql +++ b/examples/custom-admin-ui-navigation/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -222,11 +222,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-admin-ui-pages/schema.graphql b/examples/custom-admin-ui-pages/schema.graphql index e2d52cf232f..8c22d3b5ec8 100644 --- a/examples/custom-admin-ui-pages/schema.graphql +++ b/examples/custom-admin-ui-pages/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -222,11 +222,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-esbuild/schema.graphql b/examples/custom-esbuild/schema.graphql index ce314ee0941..5620ff83c84 100644 --- a/examples/custom-esbuild/schema.graphql +++ b/examples/custom-esbuild/schema.graphql @@ -101,8 +101,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-field/schema.graphql b/examples/custom-field/schema.graphql index c7cea703d8a..e1474c2ffe8 100644 --- a/examples/custom-field/schema.graphql +++ b/examples/custom-field/schema.graphql @@ -119,8 +119,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-id/schema.graphql b/examples/custom-id/schema.graphql index de84b267c64..8d70f92f1cd 100644 --- a/examples/custom-id/schema.graphql +++ b/examples/custom-id/schema.graphql @@ -116,8 +116,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -177,10 +177,10 @@ type Order { id: ID! description: String assignedTo: Person - options(where: OptionWhereInput! = {}, orderBy: [OptionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OptionWhereUniqueInput): [Option!] - optionsCount(where: OptionWhereInput! = {}): Int - products(where: ProductWhereInput! = {}, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] - productsCount(where: ProductWhereInput! = {}): Int + options(where: OptionWhereInput! = { }, orderBy: [OptionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OptionWhereUniqueInput): [Option!] + optionsCount(where: OptionWhereInput! = { }): Int + products(where: ProductWhereInput! = { }, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] + productsCount(where: ProductWhereInput! = { }): Int orderedAt: DateTime } @@ -499,29 +499,29 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int order(where: OrderWhereUniqueInput!): Order - orders(where: OrderWhereInput! = {}, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] - ordersCount(where: OrderWhereInput! = {}): Int + orders(where: OrderWhereInput! = { }, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] + ordersCount(where: OrderWhereInput! = { }): Int option(where: OptionWhereUniqueInput!): Option - options(where: OptionWhereInput! = {}, orderBy: [OptionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OptionWhereUniqueInput): [Option!] - optionsCount(where: OptionWhereInput! = {}): Int + options(where: OptionWhereInput! = { }, orderBy: [OptionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OptionWhereUniqueInput): [Option!] + optionsCount(where: OptionWhereInput! = { }): Int product(where: ProductWhereUniqueInput!): Product - products(where: ProductWhereInput! = {}, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] - productsCount(where: ProductWhereInput! = {}): Int + products(where: ProductWhereInput! = { }, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] + productsCount(where: ProductWhereInput! = { }): Int cuid2(where: Cuid2WhereUniqueInput!): Cuid2 - cuid2s(where: Cuid2WhereInput! = {}, orderBy: [Cuid2OrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: Cuid2WhereUniqueInput): [Cuid2!] - cuid2sCount(where: Cuid2WhereInput! = {}): Int + cuid2s(where: Cuid2WhereInput! = { }, orderBy: [Cuid2OrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: Cuid2WhereUniqueInput): [Cuid2!] + cuid2sCount(where: Cuid2WhereInput! = { }): Int ulid(where: UlidWhereUniqueInput!): Ulid - ulids(where: UlidWhereInput! = {}, orderBy: [UlidOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UlidWhereUniqueInput): [Ulid!] - ulidsCount(where: UlidWhereInput! = {}): Int + ulids(where: UlidWhereInput! = { }, orderBy: [UlidOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UlidWhereUniqueInput): [Ulid!] + ulidsCount(where: UlidWhereInput! = { }): Int nanoid(where: NanoidWhereUniqueInput!): Nanoid - nanoids(where: NanoidWhereInput! = {}, orderBy: [NanoidOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: NanoidWhereUniqueInput): [Nanoid!] - nanoidsCount(where: NanoidWhereInput! = {}): Int + nanoids(where: NanoidWhereInput! = { }, orderBy: [NanoidOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: NanoidWhereUniqueInput): [Nanoid!] + nanoidsCount(where: NanoidWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-output-paths/my-graphql.graphql b/examples/custom-output-paths/my-graphql.graphql index a8558ef6a12..02aa05b3366 100644 --- a/examples/custom-output-paths/my-graphql.graphql +++ b/examples/custom-output-paths/my-graphql.graphql @@ -119,8 +119,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-session-invalidation/schema.graphql b/examples/custom-session-invalidation/schema.graphql index 28b4e159cf4..3f8cda45751 100644 --- a/examples/custom-session-invalidation/schema.graphql +++ b/examples/custom-session-invalidation/schema.graphql @@ -86,8 +86,8 @@ type UserAuthenticationWithPasswordFailure { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/custom-session-jwt/schema.graphql b/examples/custom-session-jwt/schema.graphql index 8923e13e24b..f47b79a9f23 100644 --- a/examples/custom-session-jwt/schema.graphql +++ b/examples/custom-session-jwt/schema.graphql @@ -152,11 +152,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-session-next-auth/schema.graphql b/examples/custom-session-next-auth/schema.graphql index 79e72d745c1..917634ca47b 100644 --- a/examples/custom-session-next-auth/schema.graphql +++ b/examples/custom-session-next-auth/schema.graphql @@ -104,8 +104,8 @@ type Author { id: ID! authId: String name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -187,11 +187,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-session-passport/schema.graphql b/examples/custom-session-passport/schema.graphql index 79e72d745c1..917634ca47b 100644 --- a/examples/custom-session-passport/schema.graphql +++ b/examples/custom-session-passport/schema.graphql @@ -104,8 +104,8 @@ type Author { id: ID! authId: String name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -187,11 +187,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/custom-session-redis/schema.graphql b/examples/custom-session-redis/schema.graphql index 28b4e159cf4..3f8cda45751 100644 --- a/examples/custom-session-redis/schema.graphql +++ b/examples/custom-session-redis/schema.graphql @@ -86,8 +86,8 @@ type UserAuthenticationWithPasswordFailure { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/custom-session/schema.graphql b/examples/custom-session/schema.graphql index 8923e13e24b..f47b79a9f23 100644 --- a/examples/custom-session/schema.graphql +++ b/examples/custom-session/schema.graphql @@ -152,11 +152,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/default-values/schema.graphql b/examples/default-values/schema.graphql index 91258d8cac2..a0e3c4e6aa5 100644 --- a/examples/default-values/schema.graphql +++ b/examples/default-values/schema.graphql @@ -165,8 +165,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -244,11 +244,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/document-field-customisation/keystone-server/schema.graphql b/examples/document-field-customisation/keystone-server/schema.graphql index 4d10d217314..240cd63ce37 100644 --- a/examples/document-field-customisation/keystone-server/schema.graphql +++ b/examples/document-field-customisation/keystone-server/schema.graphql @@ -5,8 +5,8 @@ type User { id: ID! email: String name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input UserWhereUniqueInput { @@ -213,11 +213,11 @@ type Mutation { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/document-field-hooks/schema.graphql b/examples/document-field-hooks/schema.graphql index baf5b647ab2..ccc0bfd702b 100644 --- a/examples/document-field-hooks/schema.graphql +++ b/examples/document-field-hooks/schema.graphql @@ -5,10 +5,10 @@ type Post { id: ID! title: String content: Post_content_Document - related(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - relatedCount(where: PostWhereInput! = {}): Int - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + related(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + relatedCount(where: PostWhereInput! = { }): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int } type Post_content_Document { @@ -108,8 +108,8 @@ input PostCreateInput { type Tag { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -180,11 +180,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/document-field/schema.graphql b/examples/document-field/schema.graphql index 76a9e938cf4..6758cc83278 100644 --- a/examples/document-field/schema.graphql +++ b/examples/document-field/schema.graphql @@ -147,8 +147,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int bio: Author_bio_Document } @@ -237,11 +237,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/dynamic-is-required/schema.graphql b/examples/dynamic-is-required/schema.graphql index 3ed910fbb9d..0f5f4ec88d6 100644 --- a/examples/dynamic-is-required/schema.graphql +++ b/examples/dynamic-is-required/schema.graphql @@ -8,8 +8,8 @@ type Issue { priority: IssuePriorityType reasonForHighPriority: String open: Boolean - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int } enum IssuePriorityType { @@ -145,8 +145,8 @@ input TagRelateToManyForCreateInput { type Tag { id: ID! name: String - issues(where: IssueWhereInput! = {}, orderBy: [IssueOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: IssueWhereUniqueInput): [Issue!] - issuesCount(where: IssueWhereInput! = {}): Int + issues(where: IssueWhereInput! = { }, orderBy: [IssueOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: IssueWhereUniqueInput): [Issue!] + issuesCount(where: IssueWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -235,11 +235,11 @@ input ReopenIssueArgs { type Query { issue(where: IssueWhereUniqueInput!): Issue - issues(where: IssueWhereInput! = {}, orderBy: [IssueOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: IssueWhereUniqueInput): [Issue!] - issuesCount(where: IssueWhereInput! = {}): Int + issues(where: IssueWhereInput! = { }, orderBy: [IssueOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: IssueWhereUniqueInput): [Issue!] + issuesCount(where: IssueWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/empty-lists/schema.graphql b/examples/empty-lists/schema.graphql index a79e04d49f8..5cbef346b13 100644 --- a/examples/empty-lists/schema.graphql +++ b/examples/empty-lists/schema.graphql @@ -4,12 +4,12 @@ type Post { id: ID! description: String - groups(where: GroupWhereInput! = {}, orderBy: [GroupOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: GroupWhereUniqueInput): [Group!] - groupsCount(where: GroupWhereInput! = {}): Int - reactions(where: ReactionWhereInput! = {}, orderBy: [ReactionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ReactionWhereUniqueInput): [Reaction!] - reactionsCount(where: ReactionWhereInput! = {}): Int - logs(where: LogWhereInput! = {}, orderBy: [LogOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LogWhereUniqueInput): [Log!] - logsCount(where: LogWhereInput! = {}): Int + groups(where: GroupWhereInput! = { }, orderBy: [GroupOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: GroupWhereUniqueInput): [Group!] + groupsCount(where: GroupWhereInput! = { }): Int + reactions(where: ReactionWhereInput! = { }, orderBy: [ReactionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ReactionWhereUniqueInput): [Reaction!] + reactionsCount(where: ReactionWhereInput! = { }): Int + logs(where: LogWhereInput! = { }, orderBy: [LogOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LogWhereUniqueInput): [Log!] + logsCount(where: LogWhereInput! = { }): Int } input PostWhereUniqueInput { @@ -352,23 +352,23 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int category(where: CategoryWhereUniqueInput!): Category - categories(where: CategoryWhereInput! = {}, orderBy: [CategoryOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: CategoryWhereUniqueInput): [Category!] - categoriesCount(where: CategoryWhereInput! = {}): Int + categories(where: CategoryWhereInput! = { }, orderBy: [CategoryOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: CategoryWhereUniqueInput): [Category!] + categoriesCount(where: CategoryWhereInput! = { }): Int group(where: GroupWhereUniqueInput!): Group - groups(where: GroupWhereInput! = {}, orderBy: [GroupOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: GroupWhereUniqueInput): [Group!] - groupsCount(where: GroupWhereInput! = {}): Int + groups(where: GroupWhereInput! = { }, orderBy: [GroupOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: GroupWhereUniqueInput): [Group!] + groupsCount(where: GroupWhereInput! = { }): Int reaction(where: ReactionWhereUniqueInput!): Reaction - reactions(where: ReactionWhereInput! = {}, orderBy: [ReactionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ReactionWhereUniqueInput): [Reaction!] - reactionsCount(where: ReactionWhereInput! = {}): Int + reactions(where: ReactionWhereInput! = { }, orderBy: [ReactionOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ReactionWhereUniqueInput): [Reaction!] + reactionsCount(where: ReactionWhereInput! = { }): Int log(where: LogWhereUniqueInput!): Log - logs(where: LogWhereInput! = {}, orderBy: [LogOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LogWhereUniqueInput): [Log!] - logsCount(where: LogWhereInput! = {}): Int + logs(where: LogWhereInput! = { }, orderBy: [LogOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LogWhereUniqueInput): [Log!] + logsCount(where: LogWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/extend-express-app/schema.graphql b/examples/extend-express-app/schema.graphql index 31f027a78b7..1c571d4e8eb 100644 --- a/examples/extend-express-app/schema.graphql +++ b/examples/extend-express-app/schema.graphql @@ -111,8 +111,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/extend-full-text-search/schema.graphql b/examples/extend-full-text-search/schema.graphql index 67b83ab0957..7a3047f8a67 100644 --- a/examples/extend-full-text-search/schema.graphql +++ b/examples/extend-full-text-search/schema.graphql @@ -110,8 +110,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -193,11 +193,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! searchPosts(query: String!): [Post!] } diff --git a/examples/extend-graphql-schema-graphql-tools/schema.graphql b/examples/extend-graphql-schema-graphql-tools/schema.graphql index 437b54cea72..eb589cfe307 100644 --- a/examples/extend-graphql-schema-graphql-tools/schema.graphql +++ b/examples/extend-graphql-schema-graphql-tools/schema.graphql @@ -139,8 +139,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -228,11 +228,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! """ Return all posts for a user from the last seconds """ diff --git a/examples/extend-graphql-schema-graphql-ts/schema.graphql b/examples/extend-graphql-schema-graphql-ts/schema.graphql index 22132d8090d..518d477f92d 100644 --- a/examples/extend-graphql-schema-graphql-ts/schema.graphql +++ b/examples/extend-graphql-schema-graphql-ts/schema.graphql @@ -140,8 +140,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -224,11 +224,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! recentPosts(id: ID!, seconds: Int! = 600): [Post!] stats(id: ID!): Statistics diff --git a/examples/extend-graphql-schema-nexus/README.md b/examples/extend-graphql-schema-nexus/README.md deleted file mode 100644 index d0de2f9ebb7..00000000000 --- a/examples/extend-graphql-schema-nexus/README.md +++ /dev/null @@ -1,34 +0,0 @@ -## Feature Example - Using Nexus to extend the GraphQL API - -![KeystoneJS and Nexus logos](keystone-nexus.png) - -This project demonstrates how to use [Nexus](https://nexusjs.org) to extend the GraphQL API provided by Keystone with custom queries and mutations. It builds on the [Blog](../blog) starter project. - -## Instructions - -To run this project, clone the Keystone repository locally, run `pnpm install` at the root of the repository then navigate to this directory and run: - -```shell -pnpm dev -``` - -This will start the Admin UI at [localhost:3000](http://localhost:3000). -You can use the Admin UI to create items in your database. - -You can also access a GraphQL Playground at [localhost:3000/api/graphql](http://localhost:3000/api/graphql), which allows you to directly run GraphQL queries and mutations. - -## Features - -This project demonstrates how to integrate Nexus with Keystone and use it to extend the GraphQL API. For a simpler version without Nexus, see the [Extend GraphQL Schema](../extend-graphql-schema) example. - -The Nexus schema is defined in [`/nexus`](./nexus/index.ts). It's loosely inspired by the [Nexus Tutorial](https://nexusjs.org/docs/getting-started/tutorial/chapter-setup-and-first-query) - -The resulting schema is then merged into Keystone's schema using [`@graphql-tools/schema`](https://www.graphql-tools.com/docs/schema-merging#getting-started) - -## Current Limitations - -Ideally, we could tell Nexus about the GraphQL types Keystone generates so you could write Nexus fields that return Keystone types. Making this work requires more research, so the example currently creates a separate `NexusPost` type and uses Prisma to query posts from the database. - -There's also a Prisma plugin for Nexus in development here: - -When it's ready, it would make a good addition to this example (showing how to integrate the Prisma plugin with the Keystone-generated Prisma schema to auto-generate Nexus schema) diff --git a/examples/extend-graphql-schema-nexus/keystone-nexus.png b/examples/extend-graphql-schema-nexus/keystone-nexus.png deleted file mode 100644 index 2bcb025aae3..00000000000 Binary files a/examples/extend-graphql-schema-nexus/keystone-nexus.png and /dev/null differ diff --git a/examples/extend-graphql-schema-nexus/keystone-types.ts b/examples/extend-graphql-schema-nexus/keystone-types.ts deleted file mode 100644 index 5af8abd587f..00000000000 --- a/examples/extend-graphql-schema-nexus/keystone-types.ts +++ /dev/null @@ -1,296 +0,0 @@ -/* eslint-disable */ - -export type PostStatusType = - | 'draft' - | 'published' - -export type PostWhereUniqueInput = { - readonly id?: string | null -} - -export type PostWhereInput = { - readonly AND?: ReadonlyArray | PostWhereInput | null - readonly OR?: ReadonlyArray | PostWhereInput | null - readonly NOT?: ReadonlyArray | PostWhereInput | null - readonly id?: IDFilter | null - readonly title?: StringFilter | null - readonly status?: PostStatusTypeNullableFilter | null - readonly content?: StringFilter | null - readonly publishDate?: DateTimeNullableFilter | null - readonly author?: AuthorWhereInput | null -} - -export type IDFilter = { - readonly equals?: string | null - readonly in?: ReadonlyArray | string | null - readonly notIn?: ReadonlyArray | string | null - readonly lt?: string | null - readonly lte?: string | null - readonly gt?: string | null - readonly gte?: string | null - readonly not?: IDFilter | null -} - -export type StringFilter = { - readonly equals?: string | null - readonly in?: ReadonlyArray | string | null - readonly notIn?: ReadonlyArray | string | null - readonly lt?: string | null - readonly lte?: string | null - readonly gt?: string | null - readonly gte?: string | null - readonly contains?: string | null - readonly startsWith?: string | null - readonly endsWith?: string | null - readonly not?: NestedStringFilter | null -} - -export type NestedStringFilter = { - readonly equals?: string | null - readonly in?: ReadonlyArray | string | null - readonly notIn?: ReadonlyArray | string | null - readonly lt?: string | null - readonly lte?: string | null - readonly gt?: string | null - readonly gte?: string | null - readonly contains?: string | null - readonly startsWith?: string | null - readonly endsWith?: string | null - readonly not?: NestedStringFilter | null -} - -export type PostStatusTypeNullableFilter = { - readonly equals?: PostStatusType | null - readonly in?: ReadonlyArray | PostStatusType | null - readonly notIn?: ReadonlyArray | PostStatusType | null - readonly not?: PostStatusTypeNullableFilter | null -} - -export type DateTimeNullableFilter = { - readonly equals?: any | null - readonly in?: ReadonlyArray | any | null - readonly notIn?: ReadonlyArray | any | null - readonly lt?: any | null - readonly lte?: any | null - readonly gt?: any | null - readonly gte?: any | null - readonly not?: DateTimeNullableFilter | null -} - -export type PostOrderByInput = { - readonly id?: OrderDirection | null - readonly title?: OrderDirection | null - readonly status?: OrderDirection | null - readonly content?: OrderDirection | null - readonly publishDate?: OrderDirection | null -} - -export type OrderDirection = - | 'asc' - | 'desc' - -export type PostUpdateInput = { - readonly title?: string | null - readonly status?: PostStatusType | null - readonly content?: string | null - readonly publishDate?: any | null - readonly author?: AuthorRelateToOneForUpdateInput | null -} - -export type AuthorRelateToOneForUpdateInput = { - readonly create?: AuthorCreateInput | null - readonly connect?: AuthorWhereUniqueInput | null - readonly disconnect?: boolean | null -} - -export type PostUpdateArgs = { - readonly where: PostWhereUniqueInput - readonly data: PostUpdateInput -} - -export type PostCreateInput = { - readonly title?: string | null - readonly status?: PostStatusType | null - readonly content?: string | null - readonly publishDate?: any | null - readonly author?: AuthorRelateToOneForCreateInput | null -} - -export type AuthorRelateToOneForCreateInput = { - readonly create?: AuthorCreateInput | null - readonly connect?: AuthorWhereUniqueInput | null -} - -export type AuthorWhereUniqueInput = { - readonly id?: string | null -} - -export type AuthorWhereInput = { - readonly AND?: ReadonlyArray | AuthorWhereInput | null - readonly OR?: ReadonlyArray | AuthorWhereInput | null - readonly NOT?: ReadonlyArray | AuthorWhereInput | null - readonly id?: IDFilter | null - readonly name?: StringFilter | null - readonly posts?: PostManyRelationFilter | null -} - -export type PostManyRelationFilter = { - readonly every?: PostWhereInput | null - readonly some?: PostWhereInput | null - readonly none?: PostWhereInput | null -} - -export type AuthorOrderByInput = { - readonly id?: OrderDirection | null - readonly name?: OrderDirection | null -} - -export type AuthorUpdateInput = { - readonly name?: string | null - readonly posts?: PostRelateToManyForUpdateInput | null -} - -export type PostRelateToManyForUpdateInput = { - readonly disconnect?: ReadonlyArray | PostWhereUniqueInput | null - readonly set?: ReadonlyArray | PostWhereUniqueInput | null - readonly create?: ReadonlyArray | PostCreateInput | null - readonly connect?: ReadonlyArray | PostWhereUniqueInput | null -} - -export type AuthorUpdateArgs = { - readonly where: AuthorWhereUniqueInput - readonly data: AuthorUpdateInput -} - -export type AuthorCreateInput = { - readonly name?: string | null - readonly posts?: PostRelateToManyForCreateInput | null -} - -export type PostRelateToManyForCreateInput = { - readonly create?: ReadonlyArray | PostCreateInput | null - readonly connect?: ReadonlyArray | PostWhereUniqueInput | null - readonly set?: ReadonlyArray | PostWhereUniqueInput | null -} - -export type KeystoneAdminUIFieldMetaIsNonNull = - | 'read' - | 'create' - | 'update' - -export type KeystoneAdminUIFieldMetaItemViewFieldPosition = - | 'form' - | 'sidebar' - -export type KeystoneAdminUIFieldMetaListViewFieldMode = - | 'read' - | 'hidden' - -export type QueryMode = - | 'default' - | 'insensitive' - -export type KeystoneAdminUIActionMetaItemViewNavigation = - | 'follow' - | 'refetch' - | 'return' - -export type KeystoneAdminUISortDirection = - | 'ASC' - | 'DESC' - -type ResolvedPostCreateInput = { - id?: import('./node_modules/myprisma').Prisma.PostCreateInput['id'] - title?: import('./node_modules/myprisma').Prisma.PostCreateInput['title'] - status?: import('./node_modules/myprisma').Prisma.PostCreateInput['status'] - content?: import('./node_modules/myprisma').Prisma.PostCreateInput['content'] - publishDate?: import('./node_modules/myprisma').Prisma.PostCreateInput['publishDate'] - author?: import('./node_modules/myprisma').Prisma.PostCreateInput['author'] -} -type ResolvedPostUpdateInput = { - id?: undefined - title?: import('./node_modules/myprisma').Prisma.PostUpdateInput['title'] - status?: import('./node_modules/myprisma').Prisma.PostUpdateInput['status'] - content?: import('./node_modules/myprisma').Prisma.PostUpdateInput['content'] - publishDate?: import('./node_modules/myprisma').Prisma.PostUpdateInput['publishDate'] - author?: import('./node_modules/myprisma').Prisma.PostUpdateInput['author'] -} -type ResolvedAuthorCreateInput = { - id?: import('./node_modules/myprisma').Prisma.AuthorCreateInput['id'] - name?: import('./node_modules/myprisma').Prisma.AuthorCreateInput['name'] - posts?: import('./node_modules/myprisma').Prisma.AuthorCreateInput['posts'] -} -type ResolvedAuthorUpdateInput = { - id?: undefined - name?: import('./node_modules/myprisma').Prisma.AuthorUpdateInput['name'] - posts?: import('./node_modules/myprisma').Prisma.AuthorUpdateInput['posts'] -} - -export declare namespace Lists { - export type Post = import('@keystone-6/core/types').ListConfig> - namespace Post { - export type Item = import('./node_modules/myprisma').Post - export type TypeInfo = { - key: 'Post' - isSingleton: false - fields: 'id' | 'title' | 'status' | 'content' | 'publishDate' | 'author' - actions: never - item: Item - inputs: { - where: PostWhereInput - uniqueWhere: PostWhereUniqueInput - create: PostCreateInput - update: PostUpdateInput - orderBy: PostOrderByInput - } - prisma: { - create: ResolvedPostCreateInput - update: ResolvedPostUpdateInput - } - all: __TypeInfo - } - } - export type Author = import('@keystone-6/core/types').ListConfig> - namespace Author { - export type Item = import('./node_modules/myprisma').Author - export type TypeInfo = { - key: 'Author' - isSingleton: false - fields: 'id' | 'name' | 'posts' - actions: never - item: Item - inputs: { - where: AuthorWhereInput - uniqueWhere: AuthorWhereUniqueInput - create: AuthorCreateInput - update: AuthorUpdateInput - orderBy: AuthorOrderByInput - } - prisma: { - create: ResolvedAuthorCreateInput - update: ResolvedAuthorUpdateInput - } - all: __TypeInfo - } - } -} -export type Context = import('@keystone-6/core/types').KeystoneContext> -export type Config = import('@keystone-6/core/types').KeystoneConfig> - -export type TypeInfo = { - lists: { - readonly Post: Lists.Post.TypeInfo - readonly Author: Lists.Author.TypeInfo - } - prisma: import('./node_modules/myprisma').PrismaClient - session: Session - dbProvider: 'sqlite' -} - -type __TypeInfo = TypeInfo - -export type Lists = { - [Key in keyof TypeInfo['lists']]?: import('@keystone-6/core/types').ListConfig['lists'][Key]> -} & Record> - -export {} diff --git a/examples/extend-graphql-schema-nexus/keystone.ts b/examples/extend-graphql-schema-nexus/keystone.ts deleted file mode 100644 index 719491eadb7..00000000000 --- a/examples/extend-graphql-schema-nexus/keystone.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { config } from '@keystone-6/core' -import { lists, extendGraphqlSchema } from './schema' - -export default config({ - db: { - provider: 'sqlite', - url: process.env.DATABASE_URL || 'file:./keystone-example.db', - - // WARNING: this is only needed for our monorepo examples, dont do this - prismaClientPath: 'node_modules/myprisma', - }, - graphql: { - extendGraphqlSchema, - }, - lists, - // we use a custom types path for easy integration with nexus - types: { - path: 'keystone-types.ts', - }, -}) diff --git a/examples/extend-graphql-schema-nexus/nexus-types.ts b/examples/extend-graphql-schema-nexus/nexus-types.ts deleted file mode 100644 index a94250fff9c..00000000000 --- a/examples/extend-graphql-schema-nexus/nexus-types.ts +++ /dev/null @@ -1,702 +0,0 @@ -/** - * This file was generated by Nexus Schema - * Do not make changes to this file directly - */ - - -import type { Context } from "./keystone-types" - - - - -declare global { - interface NexusGen extends NexusGenTypes {} -} - -export interface NexusGenInputs { - AuthorCreateInput: { // input type - name?: string | null; // String - posts?: NexusGenInputs['PostRelateToManyForCreateInput'] | null; // PostRelateToManyForCreateInput - } - AuthorOrderByInput: { // input type - id?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - name?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - } - AuthorRelateToOneForCreateInput: { // input type - connect?: NexusGenInputs['AuthorWhereUniqueInput'] | null; // AuthorWhereUniqueInput - create?: NexusGenInputs['AuthorCreateInput'] | null; // AuthorCreateInput - } - AuthorRelateToOneForUpdateInput: { // input type - connect?: NexusGenInputs['AuthorWhereUniqueInput'] | null; // AuthorWhereUniqueInput - create?: NexusGenInputs['AuthorCreateInput'] | null; // AuthorCreateInput - disconnect?: boolean | null; // Boolean - } - AuthorUpdateArgs: { // input type - data: NexusGenInputs['AuthorUpdateInput']; // AuthorUpdateInput! - where: NexusGenInputs['AuthorWhereUniqueInput']; // AuthorWhereUniqueInput! - } - AuthorUpdateInput: { // input type - name?: string | null; // String - posts?: NexusGenInputs['PostRelateToManyForUpdateInput'] | null; // PostRelateToManyForUpdateInput - } - AuthorWhereInput: { // input type - AND?: NexusGenInputs['AuthorWhereInput'][] | null; // [AuthorWhereInput!] - NOT?: NexusGenInputs['AuthorWhereInput'][] | null; // [AuthorWhereInput!] - OR?: NexusGenInputs['AuthorWhereInput'][] | null; // [AuthorWhereInput!] - id?: NexusGenInputs['IDFilter'] | null; // IDFilter - name?: NexusGenInputs['StringFilter'] | null; // StringFilter - posts?: NexusGenInputs['PostManyRelationFilter'] | null; // PostManyRelationFilter - } - AuthorWhereUniqueInput: { // input type - id?: string | null; // ID - } - DateTimeNullableFilter: { // input type - equals?: NexusGenScalars['DateTime'] | null; // DateTime - gt?: NexusGenScalars['DateTime'] | null; // DateTime - gte?: NexusGenScalars['DateTime'] | null; // DateTime - in?: NexusGenScalars['DateTime'][] | null; // [DateTime!] - lt?: NexusGenScalars['DateTime'] | null; // DateTime - lte?: NexusGenScalars['DateTime'] | null; // DateTime - not?: NexusGenInputs['DateTimeNullableFilter'] | null; // DateTimeNullableFilter - notIn?: NexusGenScalars['DateTime'][] | null; // [DateTime!] - } - IDFilter: { // input type - equals?: string | null; // ID - gt?: string | null; // ID - gte?: string | null; // ID - in?: string[] | null; // [ID!] - lt?: string | null; // ID - lte?: string | null; // ID - not?: NexusGenInputs['IDFilter'] | null; // IDFilter - notIn?: string[] | null; // [ID!] - } - NestedStringFilter: { // input type - contains?: string | null; // String - endsWith?: string | null; // String - equals?: string | null; // String - gt?: string | null; // String - gte?: string | null; // String - in?: string[] | null; // [String!] - lt?: string | null; // String - lte?: string | null; // String - not?: NexusGenInputs['NestedStringFilter'] | null; // NestedStringFilter - notIn?: string[] | null; // [String!] - startsWith?: string | null; // String - } - PostCreateInput: { // input type - author?: NexusGenInputs['AuthorRelateToOneForCreateInput'] | null; // AuthorRelateToOneForCreateInput - content?: string | null; // String - publishDate?: NexusGenScalars['DateTime'] | null; // DateTime - status?: NexusGenEnums['PostStatusType'] | null; // PostStatusType - title?: string | null; // String - } - PostManyRelationFilter: { // input type - every?: NexusGenInputs['PostWhereInput'] | null; // PostWhereInput - none?: NexusGenInputs['PostWhereInput'] | null; // PostWhereInput - some?: NexusGenInputs['PostWhereInput'] | null; // PostWhereInput - } - PostOrderByInput: { // input type - content?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - id?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - publishDate?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - status?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - title?: NexusGenEnums['OrderDirection'] | null; // OrderDirection - } - PostRelateToManyForCreateInput: { // input type - connect?: NexusGenInputs['PostWhereUniqueInput'][] | null; // [PostWhereUniqueInput!] - create?: NexusGenInputs['PostCreateInput'][] | null; // [PostCreateInput!] - } - PostRelateToManyForUpdateInput: { // input type - connect?: NexusGenInputs['PostWhereUniqueInput'][] | null; // [PostWhereUniqueInput!] - create?: NexusGenInputs['PostCreateInput'][] | null; // [PostCreateInput!] - disconnect?: NexusGenInputs['PostWhereUniqueInput'][] | null; // [PostWhereUniqueInput!] - set?: NexusGenInputs['PostWhereUniqueInput'][] | null; // [PostWhereUniqueInput!] - } - PostStatusTypeNullableFilter: { // input type - equals?: NexusGenEnums['PostStatusType'] | null; // PostStatusType - in?: NexusGenEnums['PostStatusType'][] | null; // [PostStatusType!] - not?: NexusGenInputs['PostStatusTypeNullableFilter'] | null; // PostStatusTypeNullableFilter - notIn?: NexusGenEnums['PostStatusType'][] | null; // [PostStatusType!] - } - PostUpdateArgs: { // input type - data: NexusGenInputs['PostUpdateInput']; // PostUpdateInput! - where: NexusGenInputs['PostWhereUniqueInput']; // PostWhereUniqueInput! - } - PostUpdateInput: { // input type - author?: NexusGenInputs['AuthorRelateToOneForUpdateInput'] | null; // AuthorRelateToOneForUpdateInput - content?: string | null; // String - publishDate?: NexusGenScalars['DateTime'] | null; // DateTime - status?: NexusGenEnums['PostStatusType'] | null; // PostStatusType - title?: string | null; // String - } - PostWhereInput: { // input type - AND?: NexusGenInputs['PostWhereInput'][] | null; // [PostWhereInput!] - NOT?: NexusGenInputs['PostWhereInput'][] | null; // [PostWhereInput!] - OR?: NexusGenInputs['PostWhereInput'][] | null; // [PostWhereInput!] - author?: NexusGenInputs['AuthorWhereInput'] | null; // AuthorWhereInput - content?: NexusGenInputs['StringFilter'] | null; // StringFilter - id?: NexusGenInputs['IDFilter'] | null; // IDFilter - publishDate?: NexusGenInputs['DateTimeNullableFilter'] | null; // DateTimeNullableFilter - status?: NexusGenInputs['PostStatusTypeNullableFilter'] | null; // PostStatusTypeNullableFilter - title?: NexusGenInputs['StringFilter'] | null; // StringFilter - } - PostWhereUniqueInput: { // input type - id?: string | null; // ID - } - StringFilter: { // input type - contains?: string | null; // String - endsWith?: string | null; // String - equals?: string | null; // String - gt?: string | null; // String - gte?: string | null; // String - in?: string[] | null; // [String!] - lt?: string | null; // String - lte?: string | null; // String - not?: NexusGenInputs['NestedStringFilter'] | null; // NestedStringFilter - notIn?: string[] | null; // [String!] - startsWith?: string | null; // String - } -} - -export interface NexusGenEnums { - KeystoneAdminUIFieldMetaCreateViewFieldMode: "edit" | "hidden" - KeystoneAdminUIFieldMetaIsNonNull: "create" | "read" | "update" - KeystoneAdminUIFieldMetaItemViewFieldMode: "edit" | "hidden" | "read" - KeystoneAdminUIFieldMetaItemViewFieldPosition: "form" | "sidebar" - KeystoneAdminUIFieldMetaListViewFieldMode: "hidden" | "read" - KeystoneAdminUISortDirection: "ASC" | "DESC" - OrderDirection: "asc" | "desc" - PostStatusType: "draft" | "published" - QueryMode: "default" | "insensitive" -} - -export interface NexusGenScalars { - String: string - Int: number - Float: number - Boolean: boolean - ID: string - DateTime: any - JSON: any -} - -export interface NexusGenObjects { - Author: {}; - KeystoneAdminMeta: { // root type - lists: NexusGenRootTypes['KeystoneAdminUIListMeta'][]; // [KeystoneAdminUIListMeta!]! - } - KeystoneAdminUIFieldGroupMeta: { // root type - description?: string | null; // String - fields: NexusGenRootTypes['KeystoneAdminUIFieldMeta'][]; // [KeystoneAdminUIFieldMeta!]! - label: string; // String! - } - KeystoneAdminUIFieldMeta: { // root type - createView: NexusGenRootTypes['KeystoneAdminUIFieldMetaCreateView']; // KeystoneAdminUIFieldMetaCreateView! - customViewsIndex?: number | null; // Int - description?: string | null; // String - fieldMeta?: NexusGenScalars['JSON'] | null; // JSON - isNonNull?: NexusGenEnums['KeystoneAdminUIFieldMetaIsNonNull'][] | null; // [KeystoneAdminUIFieldMetaIsNonNull!] - label: string; // String! - listView: NexusGenRootTypes['KeystoneAdminUIFieldMetaListView']; // KeystoneAdminUIFieldMetaListView! - path: string; // String! - search?: NexusGenEnums['QueryMode'] | null; // QueryMode - viewsIndex: number; // Int! - } - KeystoneAdminUIFieldMetaCreateView: {}; - KeystoneAdminUIFieldMetaItemView: {}; - KeystoneAdminUIFieldMetaListView: {}; - KeystoneAdminUIGraphQL: { // root type - names: NexusGenRootTypes['KeystoneAdminUIGraphQLNames']; // KeystoneAdminUIGraphQLNames! - } - KeystoneAdminUIGraphQLNames: { // root type - createInputName: string; // String! - createManyMutationName: string; // String! - createMutationName: string; // String! - deleteManyMutationName: string; // String! - deleteMutationName: string; // String! - itemQueryName: string; // String! - listOrderName: string; // String! - listQueryCountName: string; // String! - listQueryName: string; // String! - outputTypeName: string; // String! - relateToManyForCreateInputName: string; // String! - relateToManyForUpdateInputName: string; // String! - relateToOneForCreateInputName: string; // String! - relateToOneForUpdateInputName: string; // String! - updateInputName: string; // String! - updateManyInputName: string; // String! - updateManyMutationName: string; // String! - updateMutationName: string; // String! - whereInputName: string; // String! - whereUniqueInputName: string; // String! - } - KeystoneAdminUIListMeta: { // root type - description?: string | null; // String - fields: NexusGenRootTypes['KeystoneAdminUIFieldMeta'][]; // [KeystoneAdminUIFieldMeta!]! - graphql: NexusGenRootTypes['KeystoneAdminUIGraphQL']; // KeystoneAdminUIGraphQL! - groups: NexusGenRootTypes['KeystoneAdminUIFieldGroupMeta'][]; // [KeystoneAdminUIFieldGroupMeta!]! - initialColumns: string[]; // [String!]! - initialSort?: NexusGenRootTypes['KeystoneAdminUISort'] | null; // KeystoneAdminUISort - isSingleton: boolean; // Boolean! - key: string; // String! - label: string; // String! - labelField: string; // String! - pageSize: number; // Int! - path: string; // String! - plural: string; // String! - singular: string; // String! - } - KeystoneAdminUISort: { // root type - direction: NexusGenEnums['KeystoneAdminUISortDirection']; // KeystoneAdminUISortDirection! - field: string; // String! - } - KeystoneMeta: {}; - Mutation: {}; - NexusThing: { // root type - id?: number | null; // Int - title?: string | null; // String - } - Post: {}; - Query: {}; -} - -export interface NexusGenInterfaces { -} - -export interface NexusGenUnions { -} - -export type NexusGenRootTypes = NexusGenObjects - -export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars & NexusGenEnums - -export interface NexusGenFieldTypes { - Author: { // field return type - id: string; // ID! - name: string | null; // String - posts: NexusGenRootTypes['Post'][] | null; // [Post!] - postsCount: number | null; // Int - } - KeystoneAdminMeta: { // field return type - list: NexusGenRootTypes['KeystoneAdminUIListMeta'] | null; // KeystoneAdminUIListMeta - lists: NexusGenRootTypes['KeystoneAdminUIListMeta'][]; // [KeystoneAdminUIListMeta!]! - } - KeystoneAdminUIFieldGroupMeta: { // field return type - description: string | null; // String - fields: NexusGenRootTypes['KeystoneAdminUIFieldMeta'][]; // [KeystoneAdminUIFieldMeta!]! - label: string; // String! - } - KeystoneAdminUIFieldMeta: { // field return type - createView: NexusGenRootTypes['KeystoneAdminUIFieldMetaCreateView']; // KeystoneAdminUIFieldMetaCreateView! - customViewsIndex: number | null; // Int - description: string | null; // String - fieldMeta: NexusGenScalars['JSON'] | null; // JSON - isFilterable: boolean; // Boolean! - isNonNull: NexusGenEnums['KeystoneAdminUIFieldMetaIsNonNull'][] | null; // [KeystoneAdminUIFieldMetaIsNonNull!] - isOrderable: boolean; // Boolean! - itemView: NexusGenRootTypes['KeystoneAdminUIFieldMetaItemView'] | null; // KeystoneAdminUIFieldMetaItemView - label: string; // String! - listView: NexusGenRootTypes['KeystoneAdminUIFieldMetaListView']; // KeystoneAdminUIFieldMetaListView! - path: string; // String! - search: NexusGenEnums['QueryMode'] | null; // QueryMode - viewsIndex: number; // Int! - } - KeystoneAdminUIFieldMetaCreateView: { // field return type - fieldMode: NexusGenEnums['KeystoneAdminUIFieldMetaCreateViewFieldMode']; // KeystoneAdminUIFieldMetaCreateViewFieldMode! - } - KeystoneAdminUIFieldMetaItemView: { // field return type - fieldMode: NexusGenEnums['KeystoneAdminUIFieldMetaItemViewFieldMode'] | null; // KeystoneAdminUIFieldMetaItemViewFieldMode - fieldPosition: NexusGenEnums['KeystoneAdminUIFieldMetaItemViewFieldPosition'] | null; // KeystoneAdminUIFieldMetaItemViewFieldPosition - } - KeystoneAdminUIFieldMetaListView: { // field return type - fieldMode: NexusGenEnums['KeystoneAdminUIFieldMetaListViewFieldMode']; // KeystoneAdminUIFieldMetaListViewFieldMode! - } - KeystoneAdminUIGraphQL: { // field return type - names: NexusGenRootTypes['KeystoneAdminUIGraphQLNames']; // KeystoneAdminUIGraphQLNames! - } - KeystoneAdminUIGraphQLNames: { // field return type - createInputName: string; // String! - createManyMutationName: string; // String! - createMutationName: string; // String! - deleteManyMutationName: string; // String! - deleteMutationName: string; // String! - itemQueryName: string; // String! - listOrderName: string; // String! - listQueryCountName: string; // String! - listQueryName: string; // String! - outputTypeName: string; // String! - relateToManyForCreateInputName: string; // String! - relateToManyForUpdateInputName: string; // String! - relateToOneForCreateInputName: string; // String! - relateToOneForUpdateInputName: string; // String! - updateInputName: string; // String! - updateManyInputName: string; // String! - updateManyMutationName: string; // String! - updateMutationName: string; // String! - whereInputName: string; // String! - whereUniqueInputName: string; // String! - } - KeystoneAdminUIListMeta: { // field return type - description: string | null; // String - fields: NexusGenRootTypes['KeystoneAdminUIFieldMeta'][]; // [KeystoneAdminUIFieldMeta!]! - graphql: NexusGenRootTypes['KeystoneAdminUIGraphQL']; // KeystoneAdminUIGraphQL! - groups: NexusGenRootTypes['KeystoneAdminUIFieldGroupMeta'][]; // [KeystoneAdminUIFieldGroupMeta!]! - hideCreate: boolean; // Boolean! - hideDelete: boolean; // Boolean! - hideNavigation: boolean; // Boolean! - initialColumns: string[]; // [String!]! - initialSort: NexusGenRootTypes['KeystoneAdminUISort'] | null; // KeystoneAdminUISort - isSingleton: boolean; // Boolean! - key: string; // String! - label: string; // String! - labelField: string; // String! - pageSize: number; // Int! - path: string; // String! - plural: string; // String! - singular: string; // String! - } - KeystoneAdminUISort: { // field return type - direction: NexusGenEnums['KeystoneAdminUISortDirection']; // KeystoneAdminUISortDirection! - field: string; // String! - } - KeystoneMeta: { // field return type - adminMeta: NexusGenRootTypes['KeystoneAdminMeta']; // KeystoneAdminMeta! - } - Mutation: { // field return type - createAuthor: NexusGenRootTypes['Author'] | null; // Author - createAuthors: Array | null; // [Author] - createPost: NexusGenRootTypes['Post'] | null; // Post - createPosts: Array | null; // [Post] - deleteAuthor: NexusGenRootTypes['Author'] | null; // Author - deleteAuthors: Array | null; // [Author] - deletePost: NexusGenRootTypes['Post'] | null; // Post - deletePosts: Array | null; // [Post] - updateAuthor: NexusGenRootTypes['Author'] | null; // Author - updateAuthors: Array | null; // [Author] - updatePost: NexusGenRootTypes['Post'] | null; // Post - updatePosts: Array | null; // [Post] - } - NexusThing: { // field return type - id: number | null; // Int - title: string | null; // String - } - Post: { // field return type - author: NexusGenRootTypes['Author'] | null; // Author - content: string | null; // String - id: string; // ID! - publishDate: NexusGenScalars['DateTime'] | null; // DateTime - status: NexusGenEnums['PostStatusType'] | null; // PostStatusType - title: string | null; // String - } - Query: { // field return type - author: NexusGenRootTypes['Author'] | null; // Author - authors: NexusGenRootTypes['Author'][] | null; // [Author!] - authorsCount: number | null; // Int - keystone: NexusGenRootTypes['KeystoneMeta']; // KeystoneMeta! - nexusPosts: Array; // [Post]! - post: NexusGenRootTypes['Post'] | null; // Post - posts: NexusGenRootTypes['Post'][] | null; // [Post!] - postsCount: number | null; // Int - things: Array; // [NexusThing]! - } -} - -export interface NexusGenFieldTypeNames { - Author: { // field return type name - id: 'ID' - name: 'String' - posts: 'Post' - postsCount: 'Int' - } - KeystoneAdminMeta: { // field return type name - list: 'KeystoneAdminUIListMeta' - lists: 'KeystoneAdminUIListMeta' - } - KeystoneAdminUIFieldGroupMeta: { // field return type name - description: 'String' - fields: 'KeystoneAdminUIFieldMeta' - label: 'String' - } - KeystoneAdminUIFieldMeta: { // field return type name - createView: 'KeystoneAdminUIFieldMetaCreateView' - customViewsIndex: 'Int' - description: 'String' - fieldMeta: 'JSON' - isFilterable: 'Boolean' - isNonNull: 'KeystoneAdminUIFieldMetaIsNonNull' - isOrderable: 'Boolean' - itemView: 'KeystoneAdminUIFieldMetaItemView' - label: 'String' - listView: 'KeystoneAdminUIFieldMetaListView' - path: 'String' - search: 'QueryMode' - viewsIndex: 'Int' - } - KeystoneAdminUIFieldMetaCreateView: { // field return type name - fieldMode: 'KeystoneAdminUIFieldMetaCreateViewFieldMode' - } - KeystoneAdminUIFieldMetaItemView: { // field return type name - fieldMode: 'KeystoneAdminUIFieldMetaItemViewFieldMode' - fieldPosition: 'KeystoneAdminUIFieldMetaItemViewFieldPosition' - } - KeystoneAdminUIFieldMetaListView: { // field return type name - fieldMode: 'KeystoneAdminUIFieldMetaListViewFieldMode' - } - KeystoneAdminUIGraphQL: { // field return type name - names: 'KeystoneAdminUIGraphQLNames' - } - KeystoneAdminUIGraphQLNames: { // field return type name - createInputName: 'String' - createManyMutationName: 'String' - createMutationName: 'String' - deleteManyMutationName: 'String' - deleteMutationName: 'String' - itemQueryName: 'String' - listOrderName: 'String' - listQueryCountName: 'String' - listQueryName: 'String' - outputTypeName: 'String' - relateToManyForCreateInputName: 'String' - relateToManyForUpdateInputName: 'String' - relateToOneForCreateInputName: 'String' - relateToOneForUpdateInputName: 'String' - updateInputName: 'String' - updateManyInputName: 'String' - updateManyMutationName: 'String' - updateMutationName: 'String' - whereInputName: 'String' - whereUniqueInputName: 'String' - } - KeystoneAdminUIListMeta: { // field return type name - description: 'String' - fields: 'KeystoneAdminUIFieldMeta' - graphql: 'KeystoneAdminUIGraphQL' - groups: 'KeystoneAdminUIFieldGroupMeta' - hideCreate: 'Boolean' - hideDelete: 'Boolean' - hideNavigation: 'Boolean' - initialColumns: 'String' - initialSort: 'KeystoneAdminUISort' - isSingleton: 'Boolean' - key: 'String' - label: 'String' - labelField: 'String' - pageSize: 'Int' - path: 'String' - plural: 'String' - singular: 'String' - } - KeystoneAdminUISort: { // field return type name - direction: 'KeystoneAdminUISortDirection' - field: 'String' - } - KeystoneMeta: { // field return type name - adminMeta: 'KeystoneAdminMeta' - } - Mutation: { // field return type name - createAuthor: 'Author' - createAuthors: 'Author' - createPost: 'Post' - createPosts: 'Post' - deleteAuthor: 'Author' - deleteAuthors: 'Author' - deletePost: 'Post' - deletePosts: 'Post' - updateAuthor: 'Author' - updateAuthors: 'Author' - updatePost: 'Post' - updatePosts: 'Post' - } - NexusThing: { // field return type name - id: 'Int' - title: 'String' - } - Post: { // field return type name - author: 'Author' - content: 'String' - id: 'ID' - publishDate: 'DateTime' - status: 'PostStatusType' - title: 'String' - } - Query: { // field return type name - author: 'Author' - authors: 'Author' - authorsCount: 'Int' - keystone: 'KeystoneMeta' - nexusPosts: 'Post' - post: 'Post' - posts: 'Post' - postsCount: 'Int' - things: 'NexusThing' - } -} - -export interface NexusGenArgTypes { - Author: { - posts: { // args - cursor?: NexusGenInputs['PostWhereUniqueInput'] | null; // PostWhereUniqueInput - orderBy: NexusGenInputs['PostOrderByInput'][]; // [PostOrderByInput!]! - skip: number; // Int! - take?: number | null; // Int - where: NexusGenInputs['PostWhereInput']; // PostWhereInput! - } - postsCount: { // args - where: NexusGenInputs['PostWhereInput']; // PostWhereInput! - } - } - KeystoneAdminMeta: { - list: { // args - key: string; // String! - } - } - KeystoneAdminUIFieldMeta: { - itemView: { // args - id?: string | null; // ID - } - } - Mutation: { - createAuthor: { // args - data: NexusGenInputs['AuthorCreateInput']; // AuthorCreateInput! - } - createAuthors: { // args - data: NexusGenInputs['AuthorCreateInput'][]; // [AuthorCreateInput!]! - } - createPost: { // args - data: NexusGenInputs['PostCreateInput']; // PostCreateInput! - } - createPosts: { // args - data: NexusGenInputs['PostCreateInput'][]; // [PostCreateInput!]! - } - deleteAuthor: { // args - where: NexusGenInputs['AuthorWhereUniqueInput']; // AuthorWhereUniqueInput! - } - deleteAuthors: { // args - where: NexusGenInputs['AuthorWhereUniqueInput'][]; // [AuthorWhereUniqueInput!]! - } - deletePost: { // args - where: NexusGenInputs['PostWhereUniqueInput']; // PostWhereUniqueInput! - } - deletePosts: { // args - where: NexusGenInputs['PostWhereUniqueInput'][]; // [PostWhereUniqueInput!]! - } - updateAuthor: { // args - data: NexusGenInputs['AuthorUpdateInput']; // AuthorUpdateInput! - where: NexusGenInputs['AuthorWhereUniqueInput']; // AuthorWhereUniqueInput! - } - updateAuthors: { // args - data: NexusGenInputs['AuthorUpdateArgs'][]; // [AuthorUpdateArgs!]! - } - updatePost: { // args - data: NexusGenInputs['PostUpdateInput']; // PostUpdateInput! - where: NexusGenInputs['PostWhereUniqueInput']; // PostWhereUniqueInput! - } - updatePosts: { // args - data: NexusGenInputs['PostUpdateArgs'][]; // [PostUpdateArgs!]! - } - } - Query: { - author: { // args - where: NexusGenInputs['AuthorWhereUniqueInput']; // AuthorWhereUniqueInput! - } - authors: { // args - cursor?: NexusGenInputs['AuthorWhereUniqueInput'] | null; // AuthorWhereUniqueInput - orderBy: NexusGenInputs['AuthorOrderByInput'][]; // [AuthorOrderByInput!]! - skip: number; // Int! - take?: number | null; // Int - where: NexusGenInputs['AuthorWhereInput']; // AuthorWhereInput! - } - authorsCount: { // args - where: NexusGenInputs['AuthorWhereInput']; // AuthorWhereInput! - } - nexusPosts: { // args - id: string; // String! - seconds: number; // Int! - } - post: { // args - where: NexusGenInputs['PostWhereUniqueInput']; // PostWhereUniqueInput! - } - posts: { // args - cursor?: NexusGenInputs['PostWhereUniqueInput'] | null; // PostWhereUniqueInput - orderBy: NexusGenInputs['PostOrderByInput'][]; // [PostOrderByInput!]! - skip: number; // Int! - take?: number | null; // Int - where: NexusGenInputs['PostWhereInput']; // PostWhereInput! - } - postsCount: { // args - where: NexusGenInputs['PostWhereInput']; // PostWhereInput! - } - } -} - -export interface NexusGenAbstractTypeMembers { -} - -export interface NexusGenTypeInterfaces { -} - -export type NexusGenObjectNames = keyof NexusGenObjects; - -export type NexusGenInputNames = keyof NexusGenInputs; - -export type NexusGenEnumNames = keyof NexusGenEnums; - -export type NexusGenInterfaceNames = never; - -export type NexusGenScalarNames = keyof NexusGenScalars; - -export type NexusGenUnionNames = never; - -export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never; - -export type NexusGenAbstractsUsingStrategyResolveType = never; - -export type NexusGenFeaturesConfig = { - abstractTypeStrategies: { - isTypeOf: false - resolveType: true - __typename: false - } -} - -export interface NexusGenTypes { - context: Context; - inputTypes: NexusGenInputs; - rootTypes: NexusGenRootTypes; - inputTypeShapes: NexusGenInputs & NexusGenEnums & NexusGenScalars; - argTypes: NexusGenArgTypes; - fieldTypes: NexusGenFieldTypes; - fieldTypeNames: NexusGenFieldTypeNames; - allTypes: NexusGenAllTypes; - typeInterfaces: NexusGenTypeInterfaces; - objectNames: NexusGenObjectNames; - inputNames: NexusGenInputNames; - enumNames: NexusGenEnumNames; - interfaceNames: NexusGenInterfaceNames; - scalarNames: NexusGenScalarNames; - unionNames: NexusGenUnionNames; - allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames']; - allOutputTypes: NexusGenTypes['objectNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['unionNames'] | NexusGenTypes['interfaceNames'] | NexusGenTypes['scalarNames']; - allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] - abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames']; - abstractTypeMembers: NexusGenAbstractTypeMembers; - objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf; - abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType; - features: NexusGenFeaturesConfig; -} - - -declare global { - interface NexusGenPluginTypeConfig { - } - interface NexusGenPluginInputTypeConfig { - } - interface NexusGenPluginFieldConfig { - } - interface NexusGenPluginInputFieldConfig { - } - interface NexusGenPluginSchemaConfig { - } - interface NexusGenPluginArgConfig { - } -} \ No newline at end of file diff --git a/examples/extend-graphql-schema-nexus/package.json b/examples/extend-graphql-schema-nexus/package.json deleted file mode 100644 index 608088e7ba1..00000000000 --- a/examples/extend-graphql-schema-nexus/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@keystone-6/example-extend-graphql-schema-nexus", - "version": null, - "private": true, - "license": "MIT", - "scripts": { - "dev": "keystone dev", - "start": "keystone start", - "build": "keystone build", - "check": "keystone postinstall" - }, - "dependencies": { - "@graphql-tools/schema": "^9.0.0", - "@keystone-6/core": "workspace:^", - "@prisma/client": "catalog:", - "graphql": "catalog:", - "next": "catalog:", - "nexus": "^1.3.0", - "react": "catalog:", - "react-dom": "catalog:" - }, - "devDependencies": { - "prisma": "catalog:" - } -} diff --git a/examples/extend-graphql-schema-nexus/schema.graphql b/examples/extend-graphql-schema-nexus/schema.graphql deleted file mode 100644 index 7ccd306e220..00000000000 --- a/examples/extend-graphql-schema-nexus/schema.graphql +++ /dev/null @@ -1,415 +0,0 @@ -# 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 - status: PostStatusType - content: String - publishDate: DateTime - author: Author -} - -enum PostStatusType { - draft - published -} - -scalar DateTime @specifiedBy(url: "https://datatracker.ietf.org/doc/html/rfc3339#section-5.6") - -input PostWhereUniqueInput { - id: ID -} - -input PostWhereInput { - AND: [PostWhereInput!] - OR: [PostWhereInput!] - NOT: [PostWhereInput!] - id: IDFilter - title: StringFilter - status: PostStatusTypeNullableFilter - content: StringFilter - publishDate: DateTimeNullableFilter - 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 - not: NestedStringFilter -} - -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 PostStatusTypeNullableFilter { - equals: PostStatusType - in: [PostStatusType!] - notIn: [PostStatusType!] - not: PostStatusTypeNullableFilter -} - -input DateTimeNullableFilter { - equals: DateTime - in: [DateTime!] - notIn: [DateTime!] - lt: DateTime - lte: DateTime - gt: DateTime - gte: DateTime - not: DateTimeNullableFilter -} - -input PostOrderByInput { - id: OrderDirection - title: OrderDirection - status: OrderDirection - content: OrderDirection - publishDate: OrderDirection -} - -enum OrderDirection { - asc - desc -} - -input PostUpdateInput { - title: String - status: PostStatusType - content: String - publishDate: DateTime - author: AuthorRelateToOneForUpdateInput -} - -input AuthorRelateToOneForUpdateInput { - create: AuthorCreateInput - connect: AuthorWhereUniqueInput - disconnect: Boolean -} - -input PostUpdateArgs { - where: PostWhereUniqueInput! - data: PostUpdateInput! -} - -input PostCreateInput { - title: String - status: PostStatusType - content: String - publishDate: DateTime - author: AuthorRelateToOneForCreateInput -} - -input AuthorRelateToOneForCreateInput { - create: AuthorCreateInput - connect: AuthorWhereUniqueInput -} - -type Author { - id: ID! - name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int -} - -input AuthorWhereUniqueInput { - id: ID -} - -input AuthorWhereInput { - AND: [AuthorWhereInput!] - OR: [AuthorWhereInput!] - NOT: [AuthorWhereInput!] - id: IDFilter - name: StringFilter - posts: PostManyRelationFilter -} - -input PostManyRelationFilter { - every: PostWhereInput - some: PostWhereInput - none: PostWhereInput -} - -input AuthorOrderByInput { - id: OrderDirection - name: OrderDirection -} - -input AuthorUpdateInput { - name: String - posts: PostRelateToManyForUpdateInput -} - -input PostRelateToManyForUpdateInput { - disconnect: [PostWhereUniqueInput!] - set: [PostWhereUniqueInput!] - create: [PostCreateInput!] - connect: [PostWhereUniqueInput!] -} - -input AuthorUpdateArgs { - where: AuthorWhereUniqueInput! - data: AuthorUpdateInput! -} - -input AuthorCreateInput { - name: 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! - nexusPosts(id: String!, seconds: Int! = 600): [Post]! - things: [NexusThing]! -} - -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 -} - -enum QueryMode { - default - insensitive -} - -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 -} - -type NexusThing { - id: Int - title: String -} diff --git a/examples/extend-graphql-schema-nexus/schema.prisma b/examples/extend-graphql-schema-nexus/schema.prisma deleted file mode 100644 index 7c8b17f4423..00000000000 --- a/examples/extend-graphql-schema-nexus/schema.prisma +++ /dev/null @@ -1,31 +0,0 @@ -// This file is automatically generated by Keystone, do not modify it manually. -// Modify your Keystone config when you want to change this. - -datasource sqlite { - url = env("DATABASE_URL") - shadowDatabaseUrl = env("SHADOW_DATABASE_URL") - provider = "sqlite" -} - -generator client { - provider = "prisma-client-js" - output = "node_modules/myprisma" -} - -model Post { - id String @id @default(cuid()) - title String @default("") - status String? - content String @default("") - publishDate DateTime? - author Author? @relation("Post_author", fields: [authorId], references: [id]) - authorId String? @map("author") - - @@index([authorId]) -} - -model Author { - id String @id @default(cuid()) - name String @default("") - posts Post[] @relation("Post_author") -} diff --git a/examples/extend-graphql-schema-nexus/schema.ts b/examples/extend-graphql-schema-nexus/schema.ts deleted file mode 100644 index c8d041f0bc8..00000000000 --- a/examples/extend-graphql-schema-nexus/schema.ts +++ /dev/null @@ -1,107 +0,0 @@ -import path from 'path' -import type { GraphQLSchema } from 'graphql' -import { list } from '@keystone-6/core' -import { allowAll } from '@keystone-6/core/access' -import { select, relationship, text, timestamp } from '@keystone-6/core/fields' -import * as nexus from 'nexus' - -import type { Lists } from './keystone-types' - -export const lists = { - Post: list({ - access: allowAll, - fields: { - title: text({ validation: { isRequired: true } }), - status: select({ - type: 'enum', - options: [ - { label: 'Draft', value: 'draft' }, - { label: 'Published', value: 'published' }, - ], - }), - content: text(), - publishDate: timestamp(), - author: relationship({ ref: 'Author.posts', many: false }), - }, - }), - Author: list({ - access: allowAll, - fields: { - name: text({ validation: { isRequired: true } }), - posts: relationship({ ref: 'Post.author', many: true }), - }, - }), -} satisfies Lists - -export function extendGraphqlSchema(baseSchema: GraphQLSchema) { - const NexusPostQuery = nexus.extendType({ - type: 'Query', - definition(t) { - t.field('nexusPosts', { - type: nexus.nonNull(nexus.list('Post')), - args: { - id: nexus.nonNull(nexus.stringArg()), - seconds: nexus.nonNull(nexus.intArg({ default: 600 })), - }, - - async resolve(root, { id, seconds }, context) { - const cutoff = new Date(Date.now() - seconds * 1000) - - // Note we use `context.db.Post` here as we have a return type - // of [Post], and this API provides results in the correct format. - // If you accidentally use `context.query.Post` here you can expect problems - // when accessing the fields in your GraphQL client. - return context.db.Post.findMany({ - where: { author: { id: { equals: id } }, publishDate: { gt: cutoff } }, - }) as Promise // TODO: nexus doesn't like - }, - }) - }, - }) - - const NexusThing = nexus.objectType({ - name: 'NexusThing', - definition(t) { - t.int('id') - t.string('title') - }, - }) - - const NexusThingQuery = nexus.extendType({ - type: 'Query', - definition(t) { - t.nonNull.list.field('things', { - type: NexusThing, - resolve() { - return [ - { id: 1, title: 'Keystone' }, - { id: 2, title: 'Prisma' }, - { id: 3, title: 'Nexus' }, - ] - }, - }) - }, - }) - - return nexus.makeSchema({ - mergeSchema: { - schema: baseSchema, - }, - types: { - NexusThing, - NexusPostQuery, - NexusThingQuery, - }, - - // Typescript output settings, probably something you might commit in dev - // TODO: remove false ?? - shouldGenerateArtifacts: false, // ?? process.env.NODE_ENV !== 'production', - outputs: { - typegen: path.join(process.cwd(), 'nexus-types.ts'), - }, - contextType: { - module: path.join(process.cwd(), 'keystone-types.ts'), - export: 'Context', - }, - }) -} diff --git a/examples/extend-graphql-subscriptions/package.json b/examples/extend-graphql-subscriptions/package.json index f4d8ef59f62..94eddc925b6 100644 --- a/examples/extend-graphql-subscriptions/package.json +++ b/examples/extend-graphql-subscriptions/package.json @@ -10,7 +10,7 @@ "check": "keystone postinstall" }, "dependencies": { - "@apollo/client": "^4.1.6", + "@apollo/client": "^4.2.6", "@emotion/css": "^11.7.1", "@graphql-tools/schema": "^9.0.0", "@keystar/ui": "catalog:", diff --git a/examples/extend-graphql-subscriptions/schema.graphql b/examples/extend-graphql-subscriptions/schema.graphql index beac9349e38..941750df3d1 100644 --- a/examples/extend-graphql-subscriptions/schema.graphql +++ b/examples/extend-graphql-subscriptions/schema.graphql @@ -139,8 +139,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input AuthorWhereUniqueInput { @@ -225,11 +225,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/extend-prisma-schema/schema.graphql b/examples/extend-prisma-schema/schema.graphql index 322ef507bd9..33ca895c23d 100644 --- a/examples/extend-prisma-schema/schema.graphql +++ b/examples/extend-prisma-schema/schema.graphql @@ -158,8 +158,8 @@ input TagRelateToOneForCreateInput { type Tag { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -242,14 +242,14 @@ type Mutation { type Query { author(where: AuthorWhereUniqueInput!): Author - authors(where: AuthorWhereInput! = {}, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] - authorsCount(where: AuthorWhereInput! = {}): Int + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/field-groups/schema.graphql b/examples/field-groups/schema.graphql index f14e0f20142..73dc59b43f3 100644 --- a/examples/field-groups/schema.graphql +++ b/examples/field-groups/schema.graphql @@ -118,8 +118,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/framework-astro/schema.graphql b/examples/framework-astro/schema.graphql index 0a159d2e4d5..a5a1426ca42 100644 --- a/examples/framework-astro/schema.graphql +++ b/examples/framework-astro/schema.graphql @@ -101,8 +101,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/framework-nextjs-app-directory/schema.graphql b/examples/framework-nextjs-app-directory/schema.graphql index ba4cf579a2f..4c21f82e01f 100644 --- a/examples/framework-nextjs-app-directory/schema.graphql +++ b/examples/framework-nextjs-app-directory/schema.graphql @@ -121,8 +121,8 @@ type Mutation { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/framework-nextjs-pages-directory/schema.graphql b/examples/framework-nextjs-pages-directory/schema.graphql index 780b1c1a5c8..ea7167a4a21 100644 --- a/examples/framework-nextjs-pages-directory/schema.graphql +++ b/examples/framework-nextjs-pages-directory/schema.graphql @@ -119,8 +119,8 @@ type Mutation { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/framework-nextjs-two-servers/keystone-server/schema.graphql b/examples/framework-nextjs-two-servers/keystone-server/schema.graphql index 4d10d217314..240cd63ce37 100644 --- a/examples/framework-nextjs-two-servers/keystone-server/schema.graphql +++ b/examples/framework-nextjs-two-servers/keystone-server/schema.graphql @@ -5,8 +5,8 @@ type User { id: ID! email: String name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input UserWhereUniqueInput { @@ -213,11 +213,11 @@ type Mutation { type Query { user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/framework-remix/schema.graphql b/examples/framework-remix/schema.graphql index ce314ee0941..5620ff83c84 100644 --- a/examples/framework-remix/schema.graphql +++ b/examples/framework-remix/schema.graphql @@ -101,8 +101,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/graphql-codegen/schema.graphql b/examples/graphql-codegen/schema.graphql index c2413693cc3..864a99212c9 100644 --- a/examples/graphql-codegen/schema.graphql +++ b/examples/graphql-codegen/schema.graphql @@ -116,8 +116,8 @@ input AuthorRelateToOneForCreateInput { type Author { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int latestPost: Post } @@ -195,11 +195,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/graphql-gql.tada/schema.graphql b/examples/graphql-gql.tada/schema.graphql index c2413693cc3..864a99212c9 100644 --- a/examples/graphql-gql.tada/schema.graphql +++ b/examples/graphql-gql.tada/schema.graphql @@ -116,8 +116,8 @@ input AuthorRelateToOneForCreateInput { type Author { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int latestPost: Post } @@ -195,11 +195,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/graphql-ts-gql/schema.graphql b/examples/graphql-ts-gql/schema.graphql index c2413693cc3..864a99212c9 100644 --- a/examples/graphql-ts-gql/schema.graphql +++ b/examples/graphql-ts-gql/schema.graphql @@ -116,8 +116,8 @@ input AuthorRelateToOneForCreateInput { type Author { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int latestPost: Post } @@ -195,11 +195,11 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + 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 + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/hooks/schema.graphql b/examples/hooks/schema.graphql index 767c2cf05b2..db6648b09cd 100644 --- a/examples/hooks/schema.graphql +++ b/examples/hooks/schema.graphql @@ -140,8 +140,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/limits/schema.graphql b/examples/limits/schema.graphql index 0c5ad803874..ea3a60a162a 100644 --- a/examples/limits/schema.graphql +++ b/examples/limits/schema.graphql @@ -96,8 +96,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int! = 20, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int! = 20, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/logging-opentelemetry/schema.graphql b/examples/logging-opentelemetry/schema.graphql index 7c7d435e287..d8f5a49c493 100644 --- a/examples/logging-opentelemetry/schema.graphql +++ b/examples/logging-opentelemetry/schema.graphql @@ -97,8 +97,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/logging/schema.graphql b/examples/logging/schema.graphql index 7c7d435e287..d8f5a49c493 100644 --- a/examples/logging/schema.graphql +++ b/examples/logging/schema.graphql @@ -97,8 +97,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/number-fields/schema.graphql b/examples/number-fields/schema.graphql index ccb90136c15..6b80b901fc1 100644 --- a/examples/number-fields/schema.graphql +++ b/examples/number-fields/schema.graphql @@ -129,8 +129,8 @@ type Mutation { type Query { example(where: ExampleWhereUniqueInput!): Example - examples(where: ExampleWhereInput! = {}, orderBy: [ExampleOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ExampleWhereUniqueInput): [Example!] - examplesCount(where: ExampleWhereInput! = {}): Int + examples(where: ExampleWhereInput! = { }, orderBy: [ExampleOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ExampleWhereUniqueInput): [Example!] + examplesCount(where: ExampleWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/omit/schema.graphql b/examples/omit/schema.graphql index 87eae8e1ec1..e51728ae709 100644 --- a/examples/omit/schema.graphql +++ b/examples/omit/schema.graphql @@ -4,8 +4,8 @@ type Person { id: ID! name: String - priority(where: PriorityWhereInput! = {}, orderBy: [PriorityOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PriorityWhereUniqueInput): [Priority!] - priorityCount(where: PriorityWhereInput! = {}): Int + priority(where: PriorityWhereInput! = { }, orderBy: [PriorityOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PriorityWhereUniqueInput): [Priority!] + priorityCount(where: PriorityWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -181,14 +181,14 @@ type Mutation { type Query { person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int priority(where: PriorityWhereUniqueInput!): Priority - priorities(where: PriorityWhereInput! = {}, orderBy: [PriorityOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PriorityWhereUniqueInput): [Priority!] - prioritiesCount(where: PriorityWhereInput! = {}): Int + priorities(where: PriorityWhereInput! = { }, orderBy: [PriorityOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PriorityWhereUniqueInput): [Priority!] + prioritiesCount(where: PriorityWhereInput! = { }): Int naughty(where: NaughtyWhereUniqueInput!): Naughty - naughties(where: NaughtyWhereInput! = {}, orderBy: [NaughtyOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: NaughtyWhereUniqueInput): [Naughty!] - naughtiesCount(where: NaughtyWhereInput! = {}): Int + naughties(where: NaughtyWhereInput! = { }, orderBy: [NaughtyOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: NaughtyWhereUniqueInput): [Naughty!] + naughtiesCount(where: NaughtyWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/relationships/schema.graphql b/examples/relationships/schema.graphql index 68165c46d06..1acce73947f 100644 --- a/examples/relationships/schema.graphql +++ b/examples/relationships/schema.graphql @@ -5,10 +5,10 @@ type Post { id: ID! title: String category: Category - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int - related(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - relatedCount(where: PostWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int + related(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + relatedCount(where: PostWhereInput! = { }): Int recommendations: PostRecommendationsOutput bundles: PostBundlesOutput relatable: Boolean @@ -188,8 +188,8 @@ input PostRelateToOneForCreateInput { type Category { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input CategoryWhereUniqueInput { @@ -228,8 +228,8 @@ input CategoryCreateInput { type Tag { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -293,14 +293,14 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int category(where: CategoryWhereUniqueInput!): Category - categories(where: CategoryWhereInput! = {}, orderBy: [CategoryOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: CategoryWhereUniqueInput): [Category!] - categoriesCount(where: CategoryWhereInput! = {}): Int + categories(where: CategoryWhereInput! = { }, orderBy: [CategoryOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: CategoryWhereUniqueInput): [Category!] + categoriesCount(where: CategoryWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/reuse/schema.graphql b/examples/reuse/schema.graphql index fcea06e7fb3..b895cededbd 100644 --- a/examples/reuse/schema.graphql +++ b/examples/reuse/schema.graphql @@ -276,17 +276,17 @@ type Mutation { type Query { invoice(where: InvoiceWhereUniqueInput!): Invoice - invoices(where: InvoiceWhereInput! = {}, orderBy: [InvoiceOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: InvoiceWhereUniqueInput): [Invoice!] - invoicesCount(where: InvoiceWhereInput! = {}): Int + invoices(where: InvoiceWhereInput! = { }, orderBy: [InvoiceOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: InvoiceWhereUniqueInput): [Invoice!] + invoicesCount(where: InvoiceWhereInput! = { }): Int order(where: OrderWhereUniqueInput!): Order - orders(where: OrderWhereInput! = {}, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] - ordersCount(where: OrderWhereInput! = {}): Int + orders(where: OrderWhereInput! = { }, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] + ordersCount(where: OrderWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int unused(where: UnusedWhereUniqueInput!): Unused - unuseds(where: UnusedWhereInput! = {}, orderBy: [UnusedOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UnusedWhereUniqueInput): [Unused!] - unusedsCount(where: UnusedWhereInput! = {}): Int + unuseds(where: UnusedWhereInput! = { }, orderBy: [UnusedOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UnusedWhereUniqueInput): [Unused!] + unusedsCount(where: UnusedWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/script/schema.graphql b/examples/script/schema.graphql index 852e9fb3bca..5a6ed9b0b9a 100644 --- a/examples/script/schema.graphql +++ b/examples/script/schema.graphql @@ -114,8 +114,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/singleton/schema.graphql b/examples/singleton/schema.graphql index 0f4b074b966..a4c2151f08a 100644 --- a/examples/singleton/schema.graphql +++ b/examples/singleton/schema.graphql @@ -5,8 +5,8 @@ type Settings { id: ID! websiteName: String copyrightText: String - highlightedPosts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - highlightedPostsCount(where: PostWhereInput! = {}): Int + highlightedPosts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + highlightedPostsCount(where: PostWhereInput! = { }): Int } input SettingsWhereUniqueInput { @@ -93,7 +93,7 @@ input PostRelateToManyForUpdateInput { } input SettingsUpdateArgs { - where: SettingsWhereUniqueInput! = {id: 1} + where: SettingsWhereUniqueInput! = { id: 1 } data: SettingsUpdateInput! } @@ -175,9 +175,9 @@ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/fi type Mutation { createSettings(data: SettingsCreateInput!): Settings createManySettings(data: [SettingsCreateInput!]!): [Settings] - updateSettings(where: SettingsWhereUniqueInput! = {id: 1}, data: SettingsUpdateInput!): Settings + updateSettings(where: SettingsWhereUniqueInput! = { id: 1 }, data: SettingsUpdateInput!): Settings updateManySettings(data: [SettingsUpdateArgs!]!): [Settings] - deleteSettings(where: SettingsWhereUniqueInput! = {id: 1}): Settings + deleteSettings(where: SettingsWhereUniqueInput! = { id: 1 }): Settings deleteManySettings(where: [SettingsWhereUniqueInput!]!): [Settings] createPost(data: PostCreateInput!): Post createPosts(data: [PostCreateInput!]!): [Post] @@ -188,12 +188,12 @@ type Mutation { } type Query { - settings(where: SettingsWhereUniqueInput! = {id: 1}): Settings - manySettings(where: SettingsWhereInput! = {id: {equals: 1}}, orderBy: [SettingsOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SettingsWhereUniqueInput): [Settings!] - manySettingsCount(where: SettingsWhereInput! = {id: {equals: 1}}): Int + settings(where: SettingsWhereUniqueInput! = { id: 1 }): Settings + manySettings(where: SettingsWhereInput! = { id: { equals: 1 } }, orderBy: [SettingsOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SettingsWhereUniqueInput): [Settings!] + manySettingsCount(where: SettingsWhereInput! = { id: { equals: 1 } }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/structure-field/schema.graphql b/examples/structure-field/schema.graphql index 486dec94a8b..84f51cf9937 100644 --- a/examples/structure-field/schema.graphql +++ b/examples/structure-field/schema.graphql @@ -62,7 +62,7 @@ input PostRelateToManyForUpdateInput { } input HomepageUpdateArgs { - where: HomepageWhereUniqueInput! = {id: 1} + where: HomepageWhereUniqueInput! = { id: 1 } data: HomepageUpdateInput! } @@ -151,9 +151,9 @@ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/fi type Mutation { createHomepage(data: HomepageCreateInput!): Homepage createHomepages(data: [HomepageCreateInput!]!): [Homepage] - updateHomepage(where: HomepageWhereUniqueInput! = {id: 1}, data: HomepageUpdateInput!): Homepage + updateHomepage(where: HomepageWhereUniqueInput! = { id: 1 }, data: HomepageUpdateInput!): Homepage updateHomepages(data: [HomepageUpdateArgs!]!): [Homepage] - deleteHomepage(where: HomepageWhereUniqueInput! = {id: 1}): Homepage + deleteHomepage(where: HomepageWhereUniqueInput! = { id: 1 }): Homepage deleteHomepages(where: [HomepageWhereUniqueInput!]!): [Homepage] createPost(data: PostCreateInput!): Post createPosts(data: [PostCreateInput!]!): [Post] @@ -164,12 +164,12 @@ type Mutation { } type Query { - homepage(where: HomepageWhereUniqueInput! = {id: 1}): Homepage - homepages(where: HomepageWhereInput! = {id: {equals: 1}}, orderBy: [HomepageOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: HomepageWhereUniqueInput): [Homepage!] - homepagesCount(where: HomepageWhereInput! = {id: {equals: 1}}): Int + homepage(where: HomepageWhereUniqueInput! = { id: 1 }): Homepage + homepages(where: HomepageWhereInput! = { id: { equals: 1 } }, orderBy: [HomepageOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: HomepageWhereUniqueInput): [Homepage!] + homepagesCount(where: HomepageWhereInput! = { id: { equals: 1 } }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/testing/schema.graphql b/examples/testing/schema.graphql index c088a23b432..13f098160aa 100644 --- a/examples/testing/schema.graphql +++ b/examples/testing/schema.graphql @@ -145,8 +145,8 @@ type User { id: ID! name: String password: PasswordState - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } type PasswordState { @@ -243,11 +243,11 @@ type UserAuthenticationWithPasswordFailure { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/transactions/schema.graphql b/examples/transactions/schema.graphql index 4850acc25c2..931df9a4728 100644 --- a/examples/transactions/schema.graphql +++ b/examples/transactions/schema.graphql @@ -3,8 +3,8 @@ type Order { id: ID! - items(where: ItemWhereInput! = {}, orderBy: [ItemOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ItemWhereUniqueInput): [Item!] - itemsCount(where: ItemWhereInput! = {}): Int + items(where: ItemWhereInput! = { }, orderBy: [ItemOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ItemWhereUniqueInput): [Item!] + itemsCount(where: ItemWhereInput! = { }): Int createdAt: DateTime } @@ -273,14 +273,14 @@ type Mutation { type Query { order(where: OrderWhereUniqueInput!): Order - orders(where: OrderWhereInput! = {}, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] - ordersCount(where: OrderWhereInput! = {}): Int + orders(where: OrderWhereInput! = { }, orderBy: [OrderOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: OrderWhereUniqueInput): [Order!] + ordersCount(where: OrderWhereInput! = { }): Int item(where: ItemWhereUniqueInput!): Item - items(where: ItemWhereInput! = {}, orderBy: [ItemOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ItemWhereUniqueInput): [Item!] - itemsCount(where: ItemWhereInput! = {}): Int + items(where: ItemWhereInput! = { }, orderBy: [ItemOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ItemWhereUniqueInput): [Item!] + itemsCount(where: ItemWhereInput! = { }): Int product(where: ProductWhereUniqueInput!): Product - products(where: ProductWhereInput! = {}, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] - productsCount(where: ProductWhereInput! = {}): Int + products(where: ProductWhereInput! = { }, orderBy: [ProductOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ProductWhereUniqueInput): [Product!] + productsCount(where: ProductWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/usecase-blog-moderated/schema.graphql b/examples/usecase-blog-moderated/schema.graphql index b196c89ac9c..5aa0548965c 100644 --- a/examples/usecase-blog-moderated/schema.graphql +++ b/examples/usecase-blog-moderated/schema.graphql @@ -119,8 +119,8 @@ input PostCreateInput { type Contributor { id: ID! bio: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int user: User } @@ -193,8 +193,8 @@ input UserRelateToOneForCreateInput { type Moderator { id: ID! - hidden(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - hiddenCount(where: PostWhereInput! = {}): Int + hidden(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + hiddenCount(where: PostWhereInput! = { }): Int user: User } @@ -348,17 +348,17 @@ input FlagPostArgs { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int contributor(where: ContributorWhereUniqueInput!): Contributor - contributors(where: ContributorWhereInput! = {}, orderBy: [ContributorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ContributorWhereUniqueInput): [Contributor!] - contributorsCount(where: ContributorWhereInput! = {}): Int + contributors(where: ContributorWhereInput! = { }, orderBy: [ContributorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ContributorWhereUniqueInput): [Contributor!] + contributorsCount(where: ContributorWhereInput! = { }): Int moderator(where: ModeratorWhereUniqueInput!): Moderator - moderators(where: ModeratorWhereInput! = {}, orderBy: [ModeratorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ModeratorWhereUniqueInput): [Moderator!] - moderatorsCount(where: ModeratorWhereInput! = {}): Int + moderators(where: ModeratorWhereInput! = { }, orderBy: [ModeratorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ModeratorWhereUniqueInput): [Moderator!] + moderatorsCount(where: ModeratorWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/usecase-blog/schema.graphql b/examples/usecase-blog/schema.graphql index 77152d44fc0..3b8dc59cdba 100644 --- a/examples/usecase-blog/schema.graphql +++ b/examples/usecase-blog/schema.graphql @@ -5,8 +5,8 @@ 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 + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int createdAt: DateTime verified: Boolean } @@ -145,8 +145,8 @@ type Post { publishDate: DateTime content: Post_content_Document author: Author - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int } type Post_content_Document { @@ -246,8 +246,8 @@ input TagRelateToManyForCreateInput { type Tag { id: ID! name: String - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int } input TagWhereUniqueInput { @@ -311,14 +311,14 @@ type Mutation { type Query { author(where: AuthorWhereUniqueInput!): Author - authors(where: AuthorWhereInput! = {}, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] - authorsCount(where: AuthorWhereInput! = {}): Int + authors(where: AuthorWhereInput! = { }, orderBy: [AuthorOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: AuthorWhereUniqueInput): [Author!] + authorsCount(where: AuthorWhereInput! = { }): Int post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int tag(where: TagWhereUniqueInput!): Tag - tags(where: TagWhereInput! = {}, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] - tagsCount(where: TagWhereInput! = {}): Int + tags(where: TagWhereInput! = { }, orderBy: [TagOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TagWhereUniqueInput): [Tag!] + tagsCount(where: TagWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/usecase-relationship-union/schema.graphql b/examples/usecase-relationship-union/schema.graphql index 67dddf1e70d..dd5e0509f3b 100644 --- a/examples/usecase-relationship-union/schema.graphql +++ b/examples/usecase-relationship-union/schema.graphql @@ -236,14 +236,14 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int link(where: LinkWhereUniqueInput!): Link - links(where: LinkWhereInput! = {}, orderBy: [LinkOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LinkWhereUniqueInput): [Link!] - linksCount(where: LinkWhereInput! = {}): Int + links(where: LinkWhereInput! = { }, orderBy: [LinkOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: LinkWhereUniqueInput): [Link!] + linksCount(where: LinkWhereInput! = { }): Int media(where: MediaWhereUniqueInput!): Media - medias(where: MediaWhereInput! = {}, orderBy: [MediaOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: MediaWhereUniqueInput): [Media!] - mediasCount(where: MediaWhereInput! = {}): Int + medias(where: MediaWhereInput! = { }, orderBy: [MediaOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: MediaWhereUniqueInput): [Media!] + mediasCount(where: MediaWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/usecase-roles/schema.graphql b/examples/usecase-roles/schema.graphql index 5e4e2c7529c..fa1792b9453 100644 --- a/examples/usecase-roles/schema.graphql +++ b/examples/usecase-roles/schema.graphql @@ -115,8 +115,8 @@ type User { name: String password: PasswordState role: Role - tasks(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - tasksCount(where: TodoWhereInput! = {}): Int + tasks(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + tasksCount(where: TodoWhereInput! = { }): Int } type PasswordState { @@ -202,8 +202,8 @@ type Role { canManagePeople: Boolean canManageRoles: Boolean canUseAdminUI: Boolean - assignedTo(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - assignedToCount(where: UserWhereInput! = {}): Int + assignedTo(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + assignedToCount(where: UserWhereInput! = { }): Int } input RoleWhereUniqueInput { @@ -327,14 +327,14 @@ type UserAuthenticationWithPasswordFailure { type Query { todo(where: TodoWhereUniqueInput!): Todo - todos(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - todosCount(where: TodoWhereInput! = {}): Int + todos(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + todosCount(where: TodoWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int role(where: RoleWhereUniqueInput!): Role - roles(where: RoleWhereInput! = {}, orderBy: [RoleOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: RoleWhereUniqueInput): [Role!] - rolesCount(where: RoleWhereInput! = {}): Int + roles(where: RoleWhereInput! = { }, orderBy: [RoleOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: RoleWhereUniqueInput): [Role!] + rolesCount(where: RoleWhereInput! = { }): Int keystone: KeystoneMeta! authenticatedItem: User } diff --git a/examples/usecase-todo/schema.graphql b/examples/usecase-todo/schema.graphql index 965d9ad7339..4e8a889f5b8 100644 --- a/examples/usecase-todo/schema.graphql +++ b/examples/usecase-todo/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -223,11 +223,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/usecase-versioning/schema.graphql b/examples/usecase-versioning/schema.graphql index de57b9dbaf5..6b0860aef17 100644 --- a/examples/usecase-versioning/schema.graphql +++ b/examples/usecase-versioning/schema.graphql @@ -124,8 +124,8 @@ input CopyPostArgs { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/virtual-field-banner/schema.graphql b/examples/virtual-field-banner/schema.graphql index c7eff78c554..4cf019956c3 100644 --- a/examples/virtual-field-banner/schema.graphql +++ b/examples/virtual-field-banner/schema.graphql @@ -116,8 +116,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/examples/virtual-field/schema.graphql b/examples/virtual-field/schema.graphql index 600e6867bde..398f308f230 100644 --- a/examples/virtual-field/schema.graphql +++ b/examples/virtual-field/schema.graphql @@ -126,8 +126,8 @@ type Mutation { type Query { post(where: PostWhereUniqueInput!): Post - posts(where: PostWhereInput! = {}, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] - postsCount(where: PostWhereInput! = {}): Int + posts(where: PostWhereInput! = { }, orderBy: [PostOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PostWhereUniqueInput): [Post!] + postsCount(where: PostWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/packages/cloudinary/package.json b/packages/cloudinary/package.json index 024e673fc48..38d68fe2753 100644 --- a/packages/cloudinary/package.json +++ b/packages/cloudinary/package.json @@ -38,7 +38,7 @@ "@types/express": "catalog:", "@types/react": "catalog:", "graphql": "catalog:", - "graphql-upload": "^15.0.2", + "graphql-upload": "^17.1.0", "next": "catalog:", "react": "catalog:", "react-dom": "catalog:" diff --git a/packages/core/package.json b/packages/core/package.json index 09430556382..46974e319fe 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -234,7 +234,7 @@ }, "dependencies": { "@apollo/cache-control-types": "^1.0.3", - "@apollo/client": "^4.1.6", + "@apollo/client": "^4.2.6", "@apollo/server": "^5.5.1", "@as-integrations/express4": "^1.1.2", "@babel/runtime": "^7.24.7", @@ -267,7 +267,7 @@ "express": "catalog:", "fast-deep-equal": "^3.1.3", "graphql": "catalog:", - "graphql-upload": "^15.0.2", + "graphql-upload": "^17.1.0", "image-size": "^2.0.0", "meow": "^9.0.0", "pluralize": "^8.0.0", diff --git a/packages/core/src/admin-ui/context.tsx b/packages/core/src/admin-ui/context.tsx index 48254bfbae8..2dadaa40981 100644 --- a/packages/core/src/admin-ui/context.tsx +++ b/packages/core/src/admin-ui/context.tsx @@ -1,4 +1,4 @@ -import UploadLink from 'apollo-upload-client/UploadHttpLink.mjs' +import UploadHttpLink from 'apollo-upload-client/UploadHttpLink.mjs' import { type ReactNode, createContext, useContext, useEffect, useMemo } from 'react' import { ClientSideOnlyDocumentElement, KeystarProvider } from '@keystar/ui/core' @@ -17,6 +17,7 @@ import type { import { type AdminMetaQuery, adminMetaQuery } from './admin-meta-graphql' import { ApolloClient, + ApolloLink, ApolloProvider, type ErrorLike, InMemoryCache, @@ -210,17 +211,19 @@ function InternalKeystoneProvider({ } export function KeystoneProvider(props: KeystoneProviderProps) { - const apolloClient = useMemo( - () => - new ApolloClient({ - cache: new InMemoryCache(), - link: new UploadLink({ - uri: props.apiPath, - headers: { 'Apollo-Require-Preflight': 'true' }, - }), - }), - [props.apiPath] - ) + const apolloClient = useMemo(() => { + const httpLink = new UploadHttpLink({ + uri: props.apiPath, + headers: { + 'Apollo-Require-Preflight': 'true', + }, + }) + + return new ApolloClient({ + cache: new InMemoryCache(), + link: ApolloLink.from([httpLink]), + }) + }, [props.apiPath]) return ( diff --git a/packages/core/src/lib/express.ts b/packages/core/src/lib/express.ts index a1b5fa874c0..6fb701f83a2 100644 --- a/packages/core/src/lib/express.ts +++ b/packages/core/src/lib/express.ts @@ -8,7 +8,7 @@ import { type ApolloServerOptions, ApolloServer } from '@apollo/server' import { ApolloServerPluginLandingPageDisabled } from '@apollo/server/plugin/disabled' import { ApolloServerPluginLandingPageLocalDefault } from '@apollo/server/plugin/landingPage/default' // @ts-expect-error -import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.js' +import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs' import type { KeystoneContext, KeystoneConfig } from '../types' /* diff --git a/packages/core/src/types/schema/scalars.ts b/packages/core/src/types/schema/scalars.ts index 790b514cbac..31ac2dcf49e 100644 --- a/packages/core/src/types/schema/scalars.ts +++ b/packages/core/src/types/schema/scalars.ts @@ -1,6 +1,6 @@ import type { ReadStream } from 'node:fs' // @ts-expect-error -import GraphQLUpload from 'graphql-upload/GraphQLUpload.js' +import GraphQLUpload from 'graphql-upload/GraphQLUpload.mjs' import { GraphQLError, GraphQLScalarType } from 'graphql' import { Decimal as DecimalValue } from 'decimal.js' import type { JSONValue } from '../utils' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2556757b017..e6f1d23e5e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,8 +43,8 @@ catalogs: specifier: ^4.19.2 version: 4.22.1 graphql: - specifier: ^16.14.2 - version: 16.14.2 + specifier: ^17.0.2 + version: 17.0.2 next: specifier: ^16.2.10 version: 16.2.10 @@ -1003,7 +1003,7 @@ importers: version: link:../../../packages/document-renderer graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1174,7 +1174,7 @@ importers: dependencies: '@graphql-tools/schema': specifier: ^9.0.0 - version: 9.0.19(graphql@16.14.2) + version: 9.0.19(graphql@17.0.2) '@keystone-6/core': specifier: workspace:^ version: link:../../packages/core @@ -1183,7 +1183,7 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1226,48 +1226,17 @@ importers: specifier: 'catalog:' version: 6.0.3 - examples/extend-graphql-schema-nexus: - dependencies: - '@graphql-tools/schema': - specifier: ^9.0.0 - version: 9.0.19(graphql@16.14.2) - '@keystone-6/core': - specifier: workspace:^ - version: link:../../packages/core - '@prisma/client': - specifier: 'catalog:' - version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) - graphql: - specifier: 'catalog:' - version: 16.14.2 - next: - specifier: 'catalog:' - version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) - nexus: - specifier: ^1.3.0 - version: 1.3.0(graphql@16.14.2) - react: - specifier: 'catalog:' - version: 19.2.5 - react-dom: - specifier: 'catalog:' - version: 19.2.5(react@19.2.5) - devDependencies: - prisma: - specifier: 'catalog:' - version: 6.19.3(magicast@0.3.5)(typescript@6.0.3) - examples/extend-graphql-subscriptions: dependencies: '@apollo/client': - specifier: ^4.1.6 - version: 4.1.9(graphql-ws@5.16.2(graphql@16.14.2))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) + specifier: ^4.2.6 + version: 4.2.7(graphql-ws@5.16.2(graphql@17.0.2))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) '@emotion/css': specifier: ^11.7.1 version: 11.13.5 '@graphql-tools/schema': specifier: ^9.0.0 - version: 9.0.19(graphql@16.14.2) + version: 9.0.19(graphql@17.0.2) '@keystar/ui': specifier: 'catalog:' version: 0.8.0(next@16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react-aria@3.50.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react-dom@19.2.5(react@19.2.5))(react-stately@3.48.0(react@19.2.5))(react@19.2.5) @@ -1279,13 +1248,13 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-subscriptions: specifier: ^2.0.0 - version: 2.0.0(graphql@16.14.2) + version: 2.0.0(graphql@17.0.2) graphql-ws: specifier: ^5.9.1 - version: 5.16.2(graphql@16.14.2) + version: 5.16.2(graphql@17.0.2) next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1418,13 +1387,13 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-request: specifier: ^5.0.0 - version: 5.2.0(graphql@16.14.2) + version: 5.2.0(graphql@17.0.2) graphql-yoga: specifier: ^3.1.0 - version: 3.9.1(graphql@16.14.2) + version: 3.9.1(graphql@17.0.2) next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1464,13 +1433,13 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-request: specifier: ^5.0.0 - version: 5.2.0(graphql@16.14.2) + version: 5.2.0(graphql@17.0.2) graphql-yoga: specifier: ^3.1.0 - version: 3.9.1(graphql@16.14.2) + version: 3.9.1(graphql@17.0.2) next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1534,7 +1503,7 @@ importers: version: link:../../../packages/document-renderer graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1608,7 +1577,7 @@ importers: dependencies: '@graphql-typed-document-node/core': specifier: ^3.1.2 - version: 3.2.0(graphql@16.14.2) + version: 3.2.0(graphql@17.0.2) '@keystone-6/core': specifier: workspace:^ version: link:../../packages/core @@ -1620,7 +1589,7 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1633,7 +1602,7 @@ importers: devDependencies: '@graphql-codegen/cli': specifier: ^5.0.4 - version: 5.0.7(@parcel/watcher@2.5.6)(@types/node@24.12.2)(enquirer@2.4.1)(graphql@16.14.2)(typescript@6.0.3) + version: 5.0.7(@parcel/watcher@2.5.6)(@types/node@24.12.2)(enquirer@2.4.1)(graphql@17.0.2)(typescript@6.0.3) eslint: specifier: ^8.0.0 version: 8.57.1 @@ -1648,7 +1617,7 @@ importers: dependencies: '@gql.tada/cli-utils': specifier: ^1.6.3 - version: 1.7.3(@0no-co/graphqlsp@1.15.4(graphql@16.14.2)(typescript@6.0.3))(graphql@16.14.2)(typescript@6.0.3) + version: 1.7.3(@0no-co/graphqlsp@1.15.4(graphql@17.0.2)(typescript@6.0.3))(graphql@17.0.2)(typescript@6.0.3) '@keystone-6/core': specifier: workspace:^ version: link:../../packages/core @@ -1657,10 +1626,10 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) gql.tada: specifier: ^1.8.10 - version: 1.9.2(graphql@16.14.2)(typescript@6.0.3) + version: 1.9.2(graphql@17.0.2)(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1688,7 +1657,7 @@ importers: version: 6.19.3(prisma@6.19.3(magicast@0.3.5)(typescript@6.0.3))(typescript@6.0.3) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -1701,13 +1670,13 @@ importers: devDependencies: '@ts-gql/compiler': specifier: ^0.16.7 - version: 0.16.8(graphql@16.14.2) + version: 0.16.8(graphql@17.0.2) '@ts-gql/eslint-plugin': specifier: ^0.9.1 - version: 0.9.1(eslint@8.57.1)(graphql@16.14.2)(typescript@6.0.3) + version: 0.9.1(eslint@8.57.1)(graphql@17.0.2)(typescript@6.0.3) '@ts-gql/tag': specifier: ^0.7.3 - version: 0.7.3(graphql@16.14.2) + version: 0.7.3(graphql@17.0.2) eslint: specifier: ^8.0.0 version: 8.57.1 @@ -2319,7 +2288,7 @@ importers: version: 0.8.0(next@16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react-aria@3.50.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5))(react-dom@19.2.5(react@19.2.5))(react-stately@3.48.0(react@19.2.5))(react@19.2.5) graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -2357,10 +2326,10 @@ importers: version: 19.2.14 graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-upload: - specifier: ^15.0.2 - version: 15.0.2(@types/express@4.17.25)(graphql@16.14.2) + specifier: ^17.1.0 + version: 17.1.0(@types/express@4.17.25)(graphql@17.0.2) next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -2375,28 +2344,28 @@ importers: dependencies: '@apollo/cache-control-types': specifier: ^1.0.3 - version: 1.0.3(graphql@16.14.2) + version: 1.0.3(graphql@17.0.2) '@apollo/client': - specifier: ^4.1.6 - version: 4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) + specifier: ^4.2.6 + version: 4.2.7(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) '@apollo/server': specifier: ^5.5.1 - version: 5.5.1(graphql@16.14.2) + version: 5.5.1(graphql@17.0.2) '@as-integrations/express4': specifier: ^1.1.2 - version: 1.1.2(@apollo/server@5.5.1(graphql@16.14.2))(express@4.22.1) + version: 1.1.2(@apollo/server@5.5.1(graphql@17.0.2))(express@4.22.1) '@babel/runtime': specifier: ^7.24.7 version: 7.29.2 '@graphql-ts/extend': specifier: ^2.0.0 - version: 2.0.0(@graphql-ts/schema@1.0.2(graphql@16.14.2))(graphql@16.14.2) + version: 2.0.0(@graphql-ts/schema@1.0.2(graphql@17.0.2))(graphql@17.0.2) '@graphql-ts/schema': specifier: ^1.0.0 - version: 1.0.2(graphql@16.14.2) + version: 1.0.2(graphql@17.0.2) '@graphql-typed-document-node/core': specifier: ^3.1.2 - version: 3.2.0(graphql@16.14.2) + version: 3.2.0(graphql@17.0.2) '@hapi/iron': specifier: ^7.0.0 version: 7.0.1 @@ -2429,7 +2398,7 @@ importers: version: 3.0.0 apollo-upload-client: specifier: ^19.0.0 - version: 19.0.0(@apollo/client@4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2))(graphql@16.14.2)(rxjs@7.8.2) + version: 19.0.0(@apollo/client@4.2.7(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2))(graphql@17.0.2)(rxjs@7.8.2) bcryptjs: specifier: ^3.0.0 version: 3.0.3 @@ -2474,10 +2443,10 @@ importers: version: 3.1.3 graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-upload: - specifier: ^15.0.2 - version: 15.0.2(@types/express@4.17.25)(graphql@16.14.2) + specifier: ^17.1.0 + version: 17.1.0(@types/express@4.17.25)(graphql@17.0.2) image-size: specifier: ^2.0.0 version: 2.0.2 @@ -2511,7 +2480,7 @@ importers: version: 'link:' '@types/apollo-upload-client': specifier: 19.0.0 - version: 19.0.0(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) + version: 19.0.0(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) '@types/body-parser': specifier: ^1.19.2 version: 1.19.6 @@ -2595,7 +2564,7 @@ importers: version: link:../document-renderer graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 is-hotkey: specifier: ^0.2.0 version: 0.2.0 @@ -2707,7 +2676,7 @@ importers: version: 4.22.1 graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 next: specifier: 'catalog:' version: 16.2.10(@babel/core@7.29.0)(@opentelemetry/api@1.9.1)(babel-plugin-macros@3.1.0)(react-dom@19.2.5(react@19.2.5))(react@19.2.5) @@ -2732,7 +2701,7 @@ importers: devDependencies: '@apollo/cache-control-types': specifier: ^1.0.2 - version: 1.0.3(graphql@16.14.2) + version: 1.0.3(graphql@17.0.2) '@hapi/iron': specifier: ^7.0.0 version: 7.0.1 @@ -2783,10 +2752,10 @@ importers: version: 11.1.0 graphql: specifier: 'catalog:' - version: 16.14.2 + version: 17.0.2 graphql-upload: - specifier: ^15.0.2 - version: 15.0.2(@types/express@4.17.25)(graphql@16.14.2) + specifier: ^17.1.0 + version: 17.1.0(@types/express@4.17.25)(graphql@17.0.2) mime: specifier: ^3.0.0 version: 3.0.0 @@ -3095,6 +3064,25 @@ packages: subscriptions-transport-ws: optional: true + '@apollo/client@4.2.7': + resolution: {integrity: sha512-Z129zR77VP0oWWIXPpHgwbtwhCVBzkw/FhiiymbqwlUniKb5z2KBeuQkpNIz3QfuO7ezHiaxsJ0PPjYBJTSHtg==} + peerDependencies: + graphql: ^16.0.0 || ^17.0.0 + graphql-ws: ^5.5.5 || ^6.0.3 + react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc + react-dom: ^17.0.0 || ^18.0.0 || >=19.0.0-rc + rxjs: ^7.3.0 + subscriptions-transport-ws: ^0.9.0 || ^0.11.0 + peerDependenciesMeta: + graphql-ws: + optional: true + react: + optional: true + react-dom: + optional: true + subscriptions-transport-ws: + optional: true + '@apollo/protobufjs@1.2.7': resolution: {integrity: sha512-Lahx5zntHPZia35myYDBRuF58tlwPskwHc5CWBZC/4bMKB6siTBWwtMrkqXcsNwQiFSzSx5hKdRPUmemrEp3Gg==} hasBin: true @@ -8571,9 +8559,9 @@ packages: resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} - fs-capacitor@6.2.0: - resolution: {integrity: sha512-nKcE1UduoSKX27NSZlg879LdQc94OtbOsEmKMN2MBNudXREvijRKx2GEBsTMTfws+BrbkJoEuynbGSVRSpauvw==} - engines: {node: '>=10'} + fs-capacitor@8.0.0: + resolution: {integrity: sha512-+Lk6iSKajdGw+7XYxUkwIzreJ2G1JFlYOdnKJv5PzwFLVsoJYBpCuS7WPIUSNT1IbQaEWT1nhYU63Ud03DyzLA==} + engines: {node: ^14.17.0 || >=16.0.0} fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} @@ -8770,13 +8758,13 @@ packages: peerDependencies: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 - graphql-upload@15.0.2: - resolution: {integrity: sha512-ufJAkZJBKWRDD/4wJR3VZMy9QWTwqIYIciPtCEF5fCNgWF+V1p7uIgz+bP2YYLiS4OJBhCKR8rnqE/Wg3XPUiw==} - engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0} + graphql-upload@17.1.0: + resolution: {integrity: sha512-VRpD3eTaQhObz/ulGg0N083pobqkXWTjpIu+FzUZniaviQ5GWSyr9/R+Gp34tAhEcPVoTElJsp/3mdeGZPAQJw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=22.0.0} peerDependencies: - '@types/express': ^4.0.29 - '@types/koa': ^2.11.4 - graphql: ^16.3.0 + '@types/express': ^4.0.29 || ^5.0.0 + '@types/koa': ^2.11.4 || ^3.0.0 + graphql: ^16.3.0 || ^17.0.0 peerDependenciesMeta: '@types/express': optional: true @@ -8814,6 +8802,10 @@ packages: resolution: {integrity: sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + graphql@17.0.2: + resolution: {integrity: sha512-FRWbddMxfkjiB7z+aQDWIR+E34xo9I8c9mtK2RPv8PmMzKRvrdsreHL/Ui/TmwHJfhHChEtsFPyMHKI+xuarQQ==} + engines: {node: ^22.0.0 || ^24.0.0 || ^25.0.0 || >=26.0.0} + gray-matter@4.0.3: resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==} engines: {node: '>=6.0'} @@ -10182,11 +10174,6 @@ packages: sass: optional: true - nexus@1.3.0: - resolution: {integrity: sha512-w/s19OiNOs0LrtP7pBmD9/FqJHvZLmCipVRt6v1PM8cRUYIbhEswyNKGHVoC4eHZGPSnD+bOf5A3+gnbt0A5/A==} - peerDependencies: - graphql: 15.x || 16.x - nlcst-to-string@4.0.0: resolution: {integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==} @@ -12480,10 +12467,14 @@ snapshots: optionalDependencies: graphql: 16.14.2 - '@0no-co/graphqlsp@1.15.4(graphql@16.14.2)(typescript@6.0.3)': + '@0no-co/graphql.web@1.2.0(graphql@17.0.2)': + optionalDependencies: + graphql: 17.0.2 + + '@0no-co/graphqlsp@1.15.4(graphql@17.0.2)(typescript@6.0.3)': dependencies: - '@gql.tada/internal': 1.0.9(graphql@16.14.2)(typescript@6.0.3) - graphql: 16.14.2 + '@gql.tada/internal': 1.0.9(graphql@17.0.2)(typescript@6.0.3) + graphql: 17.0.2 typescript: 6.0.3 '@antfu/ni@0.21.12': {} @@ -12492,7 +12483,11 @@ snapshots: dependencies: graphql: 16.14.2 - '@apollo/client@4.1.9(graphql-ws@5.16.2(graphql@16.14.2))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': + '@apollo/cache-control-types@1.0.3(graphql@17.0.2)': + dependencies: + graphql: 17.0.2 + + '@apollo/client@4.1.9(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) '@wry/caches': 1.0.1 @@ -12504,23 +12499,39 @@ snapshots: rxjs: 7.8.2 tslib: 2.8.1 optionalDependencies: - graphql-ws: 5.16.2(graphql@16.14.2) + graphql-ws: 6.0.8(graphql@17.0.2)(ws@8.20.0) react: 19.2.5 react-dom: 19.2.5(react@19.2.5) - '@apollo/client@4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': + '@apollo/client@4.2.7(graphql-ws@5.16.2(graphql@17.0.2))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) '@wry/caches': 1.0.1 '@wry/equality': 0.5.7 '@wry/trie': 0.5.0 - graphql: 16.14.2 - graphql-tag: 2.12.6(graphql@16.14.2) + graphql: 17.0.2 + graphql-tag: 2.12.6(graphql@17.0.2) + optimism: 0.18.1 + rxjs: 7.8.2 + tslib: 2.8.1 + optionalDependencies: + graphql-ws: 5.16.2(graphql@17.0.2) + react: 19.2.5 + react-dom: 19.2.5(react@19.2.5) + + '@apollo/client@4.2.7(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': + dependencies: + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) + '@wry/caches': 1.0.1 + '@wry/equality': 0.5.7 + '@wry/trie': 0.5.0 + graphql: 17.0.2 + graphql-tag: 2.12.6(graphql@17.0.2) optimism: 0.18.1 rxjs: 7.8.2 tslib: 2.8.1 optionalDependencies: - graphql-ws: 6.0.8(graphql@16.14.2)(ws@8.20.0) + graphql-ws: 6.0.8(graphql@17.0.2)(ws@8.20.0) react: 19.2.5 react-dom: 19.2.5(react@19.2.5) @@ -12539,33 +12550,33 @@ snapshots: '@types/long': 4.0.2 long: 4.0.0 - '@apollo/server-gateway-interface@2.0.0(graphql@16.14.2)': + '@apollo/server-gateway-interface@2.0.0(graphql@17.0.2)': dependencies: '@apollo/usage-reporting-protobuf': 4.1.1 '@apollo/utils.fetcher': 3.1.0 '@apollo/utils.keyvaluecache': 4.0.0 '@apollo/utils.logger': 3.0.0 - graphql: 16.14.2 + graphql: 17.0.2 - '@apollo/server@5.5.1(graphql@16.14.2)': + '@apollo/server@5.5.1(graphql@17.0.2)': dependencies: - '@apollo/cache-control-types': 1.0.3(graphql@16.14.2) - '@apollo/server-gateway-interface': 2.0.0(graphql@16.14.2) + '@apollo/cache-control-types': 1.0.3(graphql@17.0.2) + '@apollo/server-gateway-interface': 2.0.0(graphql@17.0.2) '@apollo/usage-reporting-protobuf': 4.1.1 '@apollo/utils.createhash': 3.0.1 '@apollo/utils.fetcher': 3.1.0 '@apollo/utils.isnodelike': 3.0.0 '@apollo/utils.keyvaluecache': 4.0.0 '@apollo/utils.logger': 3.0.0 - '@apollo/utils.usagereporting': 2.1.0(graphql@16.14.2) + '@apollo/utils.usagereporting': 2.1.0(graphql@17.0.2) '@apollo/utils.withrequired': 3.0.0 - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) async-retry: 1.3.3 body-parser: 2.3.0 content-type: 1.0.5 cors: 2.8.6 finalhandler: 2.1.1 - graphql: 16.14.2 + graphql: 17.0.2 loglevel: 1.9.2 lru-cache: 11.5.2 negotiator: 1.0.0 @@ -12582,9 +12593,9 @@ snapshots: '@apollo/utils.isnodelike': 3.0.0 sha.js: 2.4.12 - '@apollo/utils.dropunuseddefinitions@2.0.1(graphql@16.14.2)': + '@apollo/utils.dropunuseddefinitions@2.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 '@apollo/utils.fetcher@3.1.0': {} @@ -12597,45 +12608,45 @@ snapshots: '@apollo/utils.logger@3.0.0': {} - '@apollo/utils.printwithreducedwhitespace@2.0.1(graphql@16.14.2)': + '@apollo/utils.printwithreducedwhitespace@2.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 - '@apollo/utils.removealiases@2.0.1(graphql@16.14.2)': + '@apollo/utils.removealiases@2.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 - '@apollo/utils.sortast@2.0.1(graphql@16.14.2)': + '@apollo/utils.sortast@2.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 lodash.sortby: 4.7.0 - '@apollo/utils.stripsensitiveliterals@2.0.1(graphql@16.14.2)': + '@apollo/utils.stripsensitiveliterals@2.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 - '@apollo/utils.usagereporting@2.1.0(graphql@16.14.2)': + '@apollo/utils.usagereporting@2.1.0(graphql@17.0.2)': dependencies: '@apollo/usage-reporting-protobuf': 4.1.1 - '@apollo/utils.dropunuseddefinitions': 2.0.1(graphql@16.14.2) - '@apollo/utils.printwithreducedwhitespace': 2.0.1(graphql@16.14.2) - '@apollo/utils.removealiases': 2.0.1(graphql@16.14.2) - '@apollo/utils.sortast': 2.0.1(graphql@16.14.2) - '@apollo/utils.stripsensitiveliterals': 2.0.1(graphql@16.14.2) - graphql: 16.14.2 + '@apollo/utils.dropunuseddefinitions': 2.0.1(graphql@17.0.2) + '@apollo/utils.printwithreducedwhitespace': 2.0.1(graphql@17.0.2) + '@apollo/utils.removealiases': 2.0.1(graphql@17.0.2) + '@apollo/utils.sortast': 2.0.1(graphql@17.0.2) + '@apollo/utils.stripsensitiveliterals': 2.0.1(graphql@17.0.2) + graphql: 17.0.2 '@apollo/utils.withrequired@3.0.0': {} - '@ardatan/relay-compiler@13.0.1(graphql@16.14.2)': + '@ardatan/relay-compiler@13.0.1(graphql@17.0.2)': dependencies: '@babel/runtime': 7.29.2 - graphql: 16.14.2 + graphql: 17.0.2 immutable: 5.1.5 invariant: 2.2.4 - '@as-integrations/express4@1.1.2(@apollo/server@5.5.1(graphql@16.14.2))(express@4.22.1)': + '@as-integrations/express4@1.1.2(@apollo/server@5.5.1(graphql@17.0.2))(express@4.22.1)': dependencies: - '@apollo/server': 5.5.1(graphql@16.14.2) + '@apollo/server': 5.5.1(graphql@17.0.2) express: 4.22.1 '@astrojs/compiler@2.13.1': {} @@ -14201,10 +14212,10 @@ snapshots: '@whatwg-node/promise-helpers': 1.3.2 tslib: 2.8.1 - '@envelop/validation-cache@5.1.3(@envelop/core@3.0.6)(graphql@16.14.2)': + '@envelop/validation-cache@5.1.3(@envelop/core@3.0.6)(graphql@17.0.2)': dependencies: '@envelop/core': 3.0.6 - graphql: 16.14.2 + graphql: 17.0.2 hash-it: 6.0.1 lru-cache: 6.0.0 tslib: 2.8.1 @@ -14630,50 +14641,50 @@ snapshots: '@gar/promisify@1.1.3': {} - '@gql.tada/cli-utils@1.7.3(@0no-co/graphqlsp@1.15.4(graphql@16.14.2)(typescript@6.0.3))(graphql@16.14.2)(typescript@6.0.3)': + '@gql.tada/cli-utils@1.7.3(@0no-co/graphqlsp@1.15.4(graphql@17.0.2)(typescript@6.0.3))(graphql@17.0.2)(typescript@6.0.3)': dependencies: - '@0no-co/graphqlsp': 1.15.4(graphql@16.14.2)(typescript@6.0.3) - '@gql.tada/internal': 1.0.9(graphql@16.14.2)(typescript@6.0.3) - graphql: 16.14.2 + '@0no-co/graphqlsp': 1.15.4(graphql@17.0.2)(typescript@6.0.3) + '@gql.tada/internal': 1.0.9(graphql@17.0.2)(typescript@6.0.3) + graphql: 17.0.2 typescript: 6.0.3 - '@gql.tada/internal@1.0.9(graphql@16.14.2)(typescript@6.0.3)': + '@gql.tada/internal@1.0.9(graphql@17.0.2)(typescript@6.0.3)': dependencies: - '@0no-co/graphql.web': 1.2.0(graphql@16.14.2) - graphql: 16.14.2 + '@0no-co/graphql.web': 1.2.0(graphql@17.0.2) + graphql: 17.0.2 typescript: 6.0.3 - '@graphql-codegen/add@5.0.3(graphql@16.14.2)': + '@graphql-codegen/add@5.0.3(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/cli@5.0.7(@parcel/watcher@2.5.6)(@types/node@24.12.2)(enquirer@2.4.1)(graphql@16.14.2)(typescript@6.0.3)': + '@graphql-codegen/cli@5.0.7(@parcel/watcher@2.5.6)(@types/node@24.12.2)(enquirer@2.4.1)(graphql@17.0.2)(typescript@6.0.3)': dependencies: '@babel/generator': 7.29.1 '@babel/template': 7.28.6 '@babel/types': 7.29.0 - '@graphql-codegen/client-preset': 4.8.3(graphql@16.14.2) - '@graphql-codegen/core': 4.0.2(graphql@16.14.2) - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-tools/apollo-engine-loader': 8.0.30(graphql@16.14.2) - '@graphql-tools/code-file-loader': 8.1.32(graphql@16.14.2) - '@graphql-tools/git-loader': 8.0.36(graphql@16.14.2) - '@graphql-tools/github-loader': 8.0.22(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.14.2) - '@graphql-tools/json-file-loader': 8.0.28(graphql@16.14.2) - '@graphql-tools/load': 8.1.10(graphql@16.14.2) - '@graphql-tools/prisma-loader': 8.0.17(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/url-loader': 8.0.33(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-codegen/client-preset': 4.8.3(graphql@17.0.2) + '@graphql-codegen/core': 4.0.2(graphql@17.0.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-tools/apollo-engine-loader': 8.0.30(graphql@17.0.2) + '@graphql-tools/code-file-loader': 8.1.32(graphql@17.0.2) + '@graphql-tools/git-loader': 8.0.36(graphql@17.0.2) + '@graphql-tools/github-loader': 8.0.22(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/graphql-file-loader': 8.1.14(graphql@17.0.2) + '@graphql-tools/json-file-loader': 8.0.28(graphql@17.0.2) + '@graphql-tools/load': 8.1.10(graphql@17.0.2) + '@graphql-tools/prisma-loader': 8.0.17(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/url-loader': 8.0.33(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@whatwg-node/fetch': 0.10.13 chalk: 4.1.2 cosmiconfig: 8.3.6(typescript@6.0.3) debounce: 1.2.1 detect-indent: 6.1.0 - graphql: 16.14.2 - graphql-config: 5.1.6(@types/node@24.12.2)(graphql@16.14.2)(typescript@6.0.3) + graphql: 17.0.2 + graphql-config: 5.1.6(@types/node@24.12.2)(graphql@17.0.2)(typescript@6.0.3) inquirer: 8.2.7(@types/node@24.12.2) is-glob: 4.0.3 jiti: 1.21.7 @@ -14702,95 +14713,95 @@ snapshots: - typescript - utf-8-validate - '@graphql-codegen/client-preset@4.8.3(graphql@16.14.2)': + '@graphql-codegen/client-preset@4.8.3(graphql@17.0.2)': dependencies: '@babel/helper-plugin-utils': 7.28.6 '@babel/template': 7.28.6 - '@graphql-codegen/add': 5.0.3(graphql@16.14.2) - '@graphql-codegen/gql-tag-operations': 4.0.17(graphql@16.14.2) - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-codegen/typed-document-node': 5.1.2(graphql@16.14.2) - '@graphql-codegen/typescript': 4.1.6(graphql@16.14.2) - '@graphql-codegen/typescript-operations': 4.6.1(graphql@16.14.2) - '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@16.14.2) - '@graphql-tools/documents': 1.0.1(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-codegen/add': 5.0.3(graphql@17.0.2) + '@graphql-codegen/gql-tag-operations': 4.0.17(graphql@17.0.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-codegen/typed-document-node': 5.1.2(graphql@17.0.2) + '@graphql-codegen/typescript': 4.1.6(graphql@17.0.2) + '@graphql-codegen/typescript-operations': 4.6.1(graphql@17.0.2) + '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@17.0.2) + '@graphql-tools/documents': 1.0.1(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/core@4.0.2(graphql@16.14.2)': + '@graphql-codegen/core@4.0.2(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/gql-tag-operations@4.0.17(graphql@16.14.2)': + '@graphql-codegen/gql-tag-operations@4.0.17(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) auto-bind: 4.0.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/plugin-helpers@5.1.1(graphql@16.14.2)': + '@graphql-codegen/plugin-helpers@5.1.1(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) change-case-all: 1.0.15 common-tags: 1.8.2 - graphql: 16.14.2 + graphql: 17.0.2 import-from: 4.0.0 lodash: 4.17.23 tslib: 2.6.3 - '@graphql-codegen/schema-ast@4.1.0(graphql@16.14.2)': + '@graphql-codegen/schema-ast@4.1.0(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/typed-document-node@5.1.2(graphql@16.14.2)': + '@graphql-codegen/typed-document-node@5.1.2(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@16.14.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@17.0.2) auto-bind: 4.0.0 change-case-all: 1.0.15 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/typescript-operations@4.6.1(graphql@16.14.2)': + '@graphql-codegen/typescript-operations@4.6.1(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-codegen/typescript': 4.1.6(graphql@16.14.2) - '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@16.14.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-codegen/typescript': 4.1.6(graphql@17.0.2) + '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@17.0.2) auto-bind: 4.0.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/typescript@4.1.6(graphql@16.14.2)': + '@graphql-codegen/typescript@4.1.6(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-codegen/schema-ast': 4.1.0(graphql@16.14.2) - '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@16.14.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-codegen/schema-ast': 4.1.0(graphql@17.0.2) + '@graphql-codegen/visitor-plugin-common': 5.8.0(graphql@17.0.2) auto-bind: 4.0.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.6.3 - '@graphql-codegen/visitor-plugin-common@5.8.0(graphql@16.14.2)': + '@graphql-codegen/visitor-plugin-common@5.8.0(graphql@17.0.2)': dependencies: - '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.14.2) - '@graphql-tools/optimize': 2.0.0(graphql@16.14.2) - '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-codegen/plugin-helpers': 5.1.1(graphql@17.0.2) + '@graphql-tools/optimize': 2.0.0(graphql@17.0.2) + '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) auto-bind: 4.0.0 change-case-all: 1.0.15 dependency-graph: 0.11.0 - graphql: 16.14.2 - graphql-tag: 2.12.6(graphql@16.14.2) + graphql: 17.0.2 + graphql-tag: 2.12.6(graphql@17.0.2) parse-filepath: 1.0.2 tslib: 2.6.3 @@ -14798,97 +14809,97 @@ snapshots: '@graphql-hive/signal@2.0.0': {} - '@graphql-tools/apollo-engine-loader@8.0.30(graphql@16.14.2)': + '@graphql-tools/apollo-engine-loader@8.0.30(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@whatwg-node/fetch': 0.10.13 - graphql: 16.14.2 + graphql: 17.0.2 sync-fetch: 0.6.0 tslib: 2.8.1 - '@graphql-tools/batch-execute@10.0.8(graphql@16.14.2)': + '@graphql-tools/batch-execute@10.0.8(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/batch-execute@9.0.19(graphql@16.14.2)': + '@graphql-tools/batch-execute@9.0.19(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/code-file-loader@8.1.32(graphql@16.14.2)': + '@graphql-tools/code-file-loader@8.1.32(graphql@17.0.2)': dependencies: - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) globby: 11.1.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 unixify: 1.0.0 transitivePeerDependencies: - supports-color - '@graphql-tools/delegate@10.2.23(graphql@16.14.2)': + '@graphql-tools/delegate@10.2.23(graphql@17.0.2)': dependencies: - '@graphql-tools/batch-execute': 9.0.19(graphql@16.14.2) - '@graphql-tools/executor': 1.5.3(graphql@16.14.2) - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/batch-execute': 9.0.19(graphql@17.0.2) + '@graphql-tools/executor': 1.5.3(graphql@17.0.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 dset: 3.1.4 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/delegate@12.0.14(graphql@16.14.2)': + '@graphql-tools/delegate@12.0.14(graphql@17.0.2)': dependencies: - '@graphql-tools/batch-execute': 10.0.8(graphql@16.14.2) - '@graphql-tools/executor': 1.5.3(graphql@16.14.2) - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/batch-execute': 10.0.8(graphql@17.0.2) + '@graphql-tools/executor': 1.5.3(graphql@17.0.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/documents@1.0.1(graphql@16.14.2)': + '@graphql-tools/documents@1.0.1(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 lodash.sortby: 4.7.0 tslib: 2.8.1 - '@graphql-tools/executor-common@0.0.4(graphql@16.14.2)': + '@graphql-tools/executor-common@0.0.4(graphql@17.0.2)': dependencies: '@envelop/core': 5.5.1 - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + graphql: 17.0.2 - '@graphql-tools/executor-common@0.0.6(graphql@16.14.2)': + '@graphql-tools/executor-common@0.0.6(graphql@17.0.2)': dependencies: '@envelop/core': 5.5.1 - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + graphql: 17.0.2 - '@graphql-tools/executor-common@1.0.6(graphql@16.14.2)': + '@graphql-tools/executor-common@1.0.6(graphql@17.0.2)': dependencies: '@envelop/core': 5.5.1 - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 - '@graphql-tools/executor-graphql-ws@2.0.7(graphql@16.14.2)': + '@graphql-tools/executor-graphql-ws@2.0.7(graphql@17.0.2)': dependencies: - '@graphql-tools/executor-common': 0.0.6(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/executor-common': 0.0.6(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@whatwg-node/disposablestack': 0.0.6 - graphql: 16.14.2 - graphql-ws: 6.0.8(graphql@16.14.2)(ws@8.20.0) + graphql: 17.0.2 + graphql-ws: 6.0.8(graphql@17.0.2)(ws@8.20.0) isomorphic-ws: 5.0.0(ws@8.20.0) tslib: 2.8.1 ws: 8.20.0 @@ -14898,13 +14909,13 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/executor-graphql-ws@3.1.5(graphql@16.14.2)': + '@graphql-tools/executor-graphql-ws@3.1.5(graphql@17.0.2)': dependencies: - '@graphql-tools/executor-common': 1.0.6(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/executor-common': 1.0.6(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@whatwg-node/disposablestack': 0.0.6 - graphql: 16.14.2 - graphql-ws: 6.0.8(graphql@16.14.2)(ws@8.20.0) + graphql: 17.0.2 + graphql-ws: 6.0.8(graphql@17.0.2)(ws@8.20.0) isows: 1.0.7(ws@8.20.0) tslib: 2.8.1 ws: 8.20.0 @@ -14914,41 +14925,41 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/executor-http@1.3.3(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/executor-http@1.3.3(@types/node@24.12.2)(graphql@17.0.2)': dependencies: '@graphql-hive/signal': 1.0.0 - '@graphql-tools/executor-common': 0.0.4(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/executor-common': 0.0.4(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 meros: 1.3.2(@types/node@24.12.2) tslib: 2.8.1 transitivePeerDependencies: - '@types/node' - '@graphql-tools/executor-http@3.2.1(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/executor-http@3.2.1(@types/node@24.12.2)(graphql@17.0.2)': dependencies: '@graphql-hive/signal': 2.0.0 - '@graphql-tools/executor-common': 1.0.6(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/executor-common': 1.0.6(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 meros: 1.3.2(@types/node@24.12.2) tslib: 2.8.1 transitivePeerDependencies: - '@types/node' - '@graphql-tools/executor-legacy-ws@1.1.28(graphql@16.14.2)': + '@graphql-tools/executor-legacy-ws@1.1.28(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@types/ws': 8.18.1 - graphql: 16.14.2 + graphql: 17.0.2 isomorphic-ws: 5.0.0(ws@8.20.0) tslib: 2.8.1 ws: 8.20.0 @@ -14956,30 +14967,30 @@ snapshots: - bufferutil - utf-8-validate - '@graphql-tools/executor@0.0.18(graphql@16.14.2)': + '@graphql-tools/executor@0.0.18(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.14.2) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-tools/utils': 9.2.1(graphql@17.0.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.4 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/executor@1.5.3(graphql@16.14.2)': + '@graphql-tools/executor@1.5.3(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/git-loader@8.0.36(graphql@16.14.2)': + '@graphql-tools/git-loader@8.0.36(graphql@17.0.2)': dependencies: - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 is-glob: 4.0.3 micromatch: 4.0.8 tslib: 2.8.1 @@ -14987,93 +14998,93 @@ snapshots: transitivePeerDependencies: - supports-color - '@graphql-tools/github-loader@8.0.22(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/github-loader@8.0.22(@types/node@24.12.2)(graphql@17.0.2)': dependencies: - '@graphql-tools/executor-http': 1.3.3(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/executor-http': 1.3.3(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 sync-fetch: 0.6.0-2 tslib: 2.8.1 transitivePeerDependencies: - '@types/node' - supports-color - '@graphql-tools/graphql-file-loader@8.1.14(graphql@16.14.2)': + '@graphql-tools/graphql-file-loader@8.1.14(graphql@17.0.2)': dependencies: - '@graphql-tools/import': 7.1.14(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/import': 7.1.14(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) globby: 11.1.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/graphql-tag-pluck@8.3.31(graphql@16.14.2)': + '@graphql-tools/graphql-tag-pluck@8.3.31(graphql@17.0.2)': dependencies: '@babel/core': 7.29.0 '@babel/parser': 7.29.2 '@babel/plugin-syntax-import-assertions': 7.28.6(@babel/core@7.29.0) '@babel/traverse': 7.29.0 '@babel/types': 7.29.0 - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 transitivePeerDependencies: - supports-color - '@graphql-tools/import@7.1.14(graphql@16.14.2)': + '@graphql-tools/import@7.1.14(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 resolve-from: 5.0.0 tslib: 2.8.1 - '@graphql-tools/json-file-loader@8.0.28(graphql@16.14.2)': + '@graphql-tools/json-file-loader@8.0.28(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) globby: 11.1.0 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/load@8.1.10(graphql@16.14.2)': + '@graphql-tools/load@8.1.10(graphql@17.0.2)': dependencies: - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 p-limit: 3.1.0 tslib: 2.8.1 - '@graphql-tools/merge@8.4.2(graphql@16.14.2)': + '@graphql-tools/merge@8.4.2(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 9.2.1(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/merge@9.1.9(graphql@16.14.2)': + '@graphql-tools/merge@9.1.9(graphql@17.0.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/optimize@2.0.0(graphql@16.14.2)': + '@graphql-tools/optimize@2.0.0(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/prisma-loader@8.0.17(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/prisma-loader@8.0.17(@types/node@24.12.2)(graphql@17.0.2)': dependencies: - '@graphql-tools/url-loader': 8.0.33(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/url-loader': 8.0.33(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@types/js-yaml': 4.0.9 '@whatwg-node/fetch': 0.10.13 chalk: 4.1.2 debug: 4.4.3 dotenv: 16.6.1 - graphql: 16.14.2 - graphql-request: 6.1.0(graphql@16.14.2) + graphql: 17.0.2 + graphql-request: 6.1.0(graphql@17.0.2) http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 jose: 5.10.0 @@ -15091,39 +15102,39 @@ snapshots: - supports-color - utf-8-validate - '@graphql-tools/relay-operation-optimizer@7.1.4(graphql@16.14.2)': + '@graphql-tools/relay-operation-optimizer@7.1.4(graphql@17.0.2)': dependencies: - '@ardatan/relay-compiler': 13.0.1(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@ardatan/relay-compiler': 13.0.1(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/schema@10.0.33(graphql@16.14.2)': + '@graphql-tools/schema@10.0.33(graphql@17.0.2)': dependencies: - '@graphql-tools/merge': 9.1.9(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/merge': 9.1.9(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/schema@9.0.19(graphql@16.14.2)': + '@graphql-tools/schema@9.0.19(graphql@17.0.2)': dependencies: - '@graphql-tools/merge': 8.4.2(graphql@16.14.2) - '@graphql-tools/utils': 9.2.1(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-tools/merge': 8.4.2(graphql@17.0.2) + '@graphql-tools/utils': 9.2.1(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/url-loader@8.0.33(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/url-loader@8.0.33(@types/node@24.12.2)(graphql@17.0.2)': dependencies: - '@graphql-tools/executor-graphql-ws': 2.0.7(graphql@16.14.2) - '@graphql-tools/executor-http': 1.3.3(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) - '@graphql-tools/wrap': 10.1.4(graphql@16.14.2) + '@graphql-tools/executor-graphql-ws': 2.0.7(graphql@17.0.2) + '@graphql-tools/executor-http': 1.3.3(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) + '@graphql-tools/wrap': 10.1.4(graphql@17.0.2) '@types/ws': 8.18.1 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 isomorphic-ws: 5.0.0(ws@8.20.0) sync-fetch: 0.6.0-2 tslib: 2.8.1 @@ -15135,17 +15146,17 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/url-loader@9.1.2(@types/node@24.12.2)(graphql@16.14.2)': + '@graphql-tools/url-loader@9.1.2(@types/node@24.12.2)(graphql@17.0.2)': dependencies: - '@graphql-tools/executor-graphql-ws': 3.1.5(graphql@16.14.2) - '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) - '@graphql-tools/wrap': 11.1.14(graphql@16.14.2) + '@graphql-tools/executor-graphql-ws': 3.1.5(graphql@17.0.2) + '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) + '@graphql-tools/wrap': 11.1.14(graphql@17.0.2) '@types/ws': 8.18.1 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 isomorphic-ws: 5.0.0(ws@8.20.0) sync-fetch: 0.6.0 tslib: 2.8.1 @@ -15157,59 +15168,63 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/utils@10.11.0(graphql@16.14.2)': + '@graphql-tools/utils@10.11.0(graphql@17.0.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 cross-inspect: 1.0.1 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/utils@11.1.0(graphql@16.14.2)': + '@graphql-tools/utils@11.1.0(graphql@17.0.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 cross-inspect: 1.0.1 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/utils@9.2.1(graphql@16.14.2)': + '@graphql-tools/utils@9.2.1(graphql@17.0.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/wrap@10.1.4(graphql@16.14.2)': + '@graphql-tools/wrap@10.1.4(graphql@17.0.2)': dependencies: - '@graphql-tools/delegate': 10.2.23(graphql@16.14.2) - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 10.11.0(graphql@16.14.2) + '@graphql-tools/delegate': 10.2.23(graphql@17.0.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 10.11.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-tools/wrap@11.1.14(graphql@16.14.2)': + '@graphql-tools/wrap@11.1.14(graphql@17.0.2)': dependencies: - '@graphql-tools/delegate': 12.0.14(graphql@16.14.2) - '@graphql-tools/schema': 10.0.33(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/delegate': 12.0.14(graphql@17.0.2) + '@graphql-tools/schema': 10.0.33(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.14.2 + graphql: 17.0.2 tslib: 2.8.1 - '@graphql-ts/extend@2.0.0(@graphql-ts/schema@1.0.2(graphql@16.14.2))(graphql@16.14.2)': + '@graphql-ts/extend@2.0.0(@graphql-ts/schema@1.0.2(graphql@17.0.2))(graphql@17.0.2)': dependencies: - '@graphql-ts/schema': 1.0.2(graphql@16.14.2) - graphql: 16.14.2 + '@graphql-ts/schema': 1.0.2(graphql@17.0.2) + graphql: 17.0.2 - '@graphql-ts/schema@1.0.2(graphql@16.14.2)': + '@graphql-ts/schema@1.0.2(graphql@17.0.2)': dependencies: - graphql: 16.14.2 + graphql: 17.0.2 '@graphql-typed-document-node/core@3.2.0(graphql@16.14.2)': dependencies: graphql: 16.14.2 + '@graphql-typed-document-node/core@3.2.0(graphql@17.0.2)': + dependencies: + graphql: 17.0.2 + '@graphql-yoga/logger@0.0.1': dependencies: tslib: 2.8.1 @@ -16876,40 +16891,40 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@ts-gql/compiler@0.16.8(graphql@16.14.2)': + '@ts-gql/compiler@0.16.8(graphql@17.0.2)': dependencies: '@babel/code-frame': 7.29.0 '@babel/parser': 7.29.2 '@babel/runtime': 7.29.2 '@babel/types': 7.29.0 '@nodelib/fs.walk': 1.2.8 - '@ts-gql/config': 0.9.2(graphql@16.14.2) + '@ts-gql/config': 0.9.2(graphql@17.0.2) chokidar: 3.6.0 find-pkg-json-field-up: 1.0.1 graceful-fs: 4.2.11 - graphql: 16.14.2 + graphql: 17.0.2 slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: - supports-color - '@ts-gql/config@0.9.2(graphql@16.14.2)': + '@ts-gql/config@0.9.2(graphql@17.0.2)': dependencies: '@babel/runtime': 7.29.2 find-pkg-json-field-up: 1.0.1 - graphql: 16.14.2 + graphql: 17.0.2 lazy-require.macro: 0.1.0 superstruct: 0.10.13 transitivePeerDependencies: - supports-color - '@ts-gql/eslint-plugin@0.9.1(eslint@8.57.1)(graphql@16.14.2)(typescript@6.0.3)': + '@ts-gql/eslint-plugin@0.9.1(eslint@8.57.1)(graphql@17.0.2)(typescript@6.0.3)': dependencies: '@babel/runtime': 7.29.2 - '@ts-gql/config': 0.9.2(graphql@16.14.2) + '@ts-gql/config': 0.9.2(graphql@17.0.2) '@typescript-eslint/utils': 6.21.0(eslint@8.57.1)(typescript@6.0.3) find-pkg-json-field-up: 1.0.1 - graphql: 16.14.2 + graphql: 17.0.2 slash: 3.0.0 transitivePeerDependencies: - eslint @@ -16922,13 +16937,19 @@ snapshots: graphql: 16.14.2 graphql-tag: 2.12.6(graphql@16.14.2) + '@ts-gql/tag@0.7.3(graphql@17.0.2)': + dependencies: + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) + graphql: 17.0.2 + graphql-tag: 2.12.6(graphql@17.0.2) + '@types/acorn@4.0.6': dependencies: '@types/estree': 1.0.8 - '@types/apollo-upload-client@19.0.0(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': + '@types/apollo-upload-client@19.0.0(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2)': dependencies: - '@apollo/client': 4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) + '@apollo/client': 4.1.9(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) '@types/extract-files': 13.0.2 graphql: 16.14.2 transitivePeerDependencies: @@ -17549,11 +17570,11 @@ snapshots: normalize-path: 3.0.0 picomatch: 2.3.2 - apollo-upload-client@19.0.0(@apollo/client@4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2))(graphql@16.14.2)(rxjs@7.8.2): + apollo-upload-client@19.0.0(@apollo/client@4.2.7(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2))(graphql@17.0.2)(rxjs@7.8.2): dependencies: - '@apollo/client': 4.1.9(graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0))(graphql@16.14.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) + '@apollo/client': 4.2.7(graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0))(graphql@17.0.2)(react-dom@19.2.5(react@19.2.5))(react@19.2.5)(rxjs@7.8.2) extract-files: 13.0.0 - graphql: 16.14.2 + graphql: 17.0.2 rxjs: 7.8.2 arg@5.0.2: {} @@ -19111,7 +19132,7 @@ snapshots: fresh@0.5.2: {} - fs-capacitor@6.2.0: {} + fs-capacitor@8.0.0: {} fs-constants@1.0.0: {} @@ -19304,12 +19325,12 @@ snapshots: p-cancelable: 2.1.1 responselike: 2.0.1 - gql.tada@1.9.2(graphql@16.14.2)(typescript@6.0.3): + gql.tada@1.9.2(graphql@17.0.2)(typescript@6.0.3): dependencies: - '@0no-co/graphql.web': 1.2.0(graphql@16.14.2) - '@0no-co/graphqlsp': 1.15.4(graphql@16.14.2)(typescript@6.0.3) - '@gql.tada/cli-utils': 1.7.3(@0no-co/graphqlsp@1.15.4(graphql@16.14.2)(typescript@6.0.3))(graphql@16.14.2)(typescript@6.0.3) - '@gql.tada/internal': 1.0.9(graphql@16.14.2)(typescript@6.0.3) + '@0no-co/graphql.web': 1.2.0(graphql@17.0.2) + '@0no-co/graphqlsp': 1.15.4(graphql@17.0.2)(typescript@6.0.3) + '@gql.tada/cli-utils': 1.7.3(@0no-co/graphqlsp@1.15.4(graphql@17.0.2)(typescript@6.0.3))(graphql@17.0.2)(typescript@6.0.3) + '@gql.tada/internal': 1.0.9(graphql@17.0.2)(typescript@6.0.3) typescript: 6.0.3 transitivePeerDependencies: - '@gql.tada/svelte-support' @@ -19322,16 +19343,16 @@ snapshots: graphemer@1.4.0: {} - graphql-config@5.1.6(@types/node@24.12.2)(graphql@16.14.2)(typescript@6.0.3): + graphql-config@5.1.6(@types/node@24.12.2)(graphql@17.0.2)(typescript@6.0.3): dependencies: - '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.14.2) - '@graphql-tools/json-file-loader': 8.0.28(graphql@16.14.2) - '@graphql-tools/load': 8.1.10(graphql@16.14.2) - '@graphql-tools/merge': 9.1.9(graphql@16.14.2) - '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@16.14.2) - '@graphql-tools/utils': 11.1.0(graphql@16.14.2) + '@graphql-tools/graphql-file-loader': 8.1.14(graphql@17.0.2) + '@graphql-tools/json-file-loader': 8.0.28(graphql@17.0.2) + '@graphql-tools/load': 8.1.10(graphql@17.0.2) + '@graphql-tools/merge': 9.1.9(graphql@17.0.2) + '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@17.0.2) + '@graphql-tools/utils': 11.1.0(graphql@17.0.2) cosmiconfig: 8.3.6(typescript@6.0.3) - graphql: 16.14.2 + graphql: 17.0.2 jiti: 2.6.1 minimatch: 10.2.5 string-env-interpolation: 1.0.1 @@ -19344,27 +19365,27 @@ snapshots: - typescript - utf-8-validate - graphql-request@5.2.0(graphql@16.14.2): + graphql-request@5.2.0(graphql@17.0.2): dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) cross-fetch: 3.2.0 extract-files: 9.0.0 form-data: 3.0.4 - graphql: 16.14.2 + graphql: 17.0.2 transitivePeerDependencies: - encoding - graphql-request@6.1.0(graphql@16.14.2): + graphql-request@6.1.0(graphql@17.0.2): dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.14.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@17.0.2) cross-fetch: 3.2.0 - graphql: 16.14.2 + graphql: 17.0.2 transitivePeerDependencies: - encoding - graphql-subscriptions@2.0.0(graphql@16.14.2): + graphql-subscriptions@2.0.0(graphql@17.0.2): dependencies: - graphql: 16.14.2 + graphql: 17.0.2 iterall: 1.3.0 graphql-tag@2.12.6(graphql@16.14.2): @@ -19372,47 +19393,54 @@ snapshots: graphql: 16.14.2 tslib: 2.8.1 - graphql-upload@15.0.2(@types/express@4.17.25)(graphql@16.14.2): + graphql-tag@2.12.6(graphql@17.0.2): + dependencies: + graphql: 17.0.2 + tslib: 2.8.1 + + graphql-upload@17.1.0(@types/express@4.17.25)(graphql@17.0.2): dependencies: '@types/busboy': 1.5.4 '@types/node': 24.12.2 '@types/object-path': 0.11.4 busboy: 1.6.0 - fs-capacitor: 6.2.0 - graphql: 16.14.2 + fs-capacitor: 8.0.0 + graphql: 17.0.2 http-errors: 2.0.1 object-path: 0.11.8 optionalDependencies: '@types/express': 4.17.25 - graphql-ws@5.16.2(graphql@16.14.2): + graphql-ws@5.16.2(graphql@17.0.2): dependencies: - graphql: 16.14.2 + graphql: 17.0.2 - graphql-ws@6.0.8(graphql@16.14.2)(ws@8.20.0): + graphql-ws@6.0.8(graphql@17.0.2)(ws@8.20.0): dependencies: - graphql: 16.14.2 + graphql: 17.0.2 optionalDependencies: ws: 8.20.0 - graphql-yoga@3.9.1(graphql@16.14.2): + graphql-yoga@3.9.1(graphql@17.0.2): dependencies: '@envelop/core': 3.0.6 - '@envelop/validation-cache': 5.1.3(@envelop/core@3.0.6)(graphql@16.14.2) - '@graphql-tools/executor': 0.0.18(graphql@16.14.2) - '@graphql-tools/schema': 9.0.19(graphql@16.14.2) - '@graphql-tools/utils': 9.2.1(graphql@16.14.2) + '@envelop/validation-cache': 5.1.3(@envelop/core@3.0.6)(graphql@17.0.2) + '@graphql-tools/executor': 0.0.18(graphql@17.0.2) + '@graphql-tools/schema': 9.0.19(graphql@17.0.2) + '@graphql-tools/utils': 9.2.1(graphql@17.0.2) '@graphql-yoga/logger': 0.0.1 '@graphql-yoga/subscription': 3.1.0 '@whatwg-node/fetch': 0.8.8 '@whatwg-node/server': 0.7.7 dset: 3.1.4 - graphql: 16.14.2 + graphql: 17.0.2 lru-cache: 7.18.3 tslib: 2.8.1 graphql@16.14.2: {} + graphql@17.0.2: {} + gray-matter@4.0.3: dependencies: js-yaml: 3.14.2 @@ -21237,12 +21265,6 @@ snapshots: - '@babel/core' - babel-plugin-macros - nexus@1.3.0(graphql@16.14.2): - dependencies: - graphql: 16.14.2 - iterall: 1.3.0 - tslib: 2.8.1 - nlcst-to-string@4.0.0: dependencies: '@types/nlcst': 2.0.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 875189dbdb1..a276099f96a 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -24,7 +24,7 @@ catalog: '@types/react': ^19.2.14 '@types/react-dom': ^19.2.3 express: ^4.19.2 - graphql: ^16.14.2 + graphql: ^17.0.2 next: ^16.2.10 prisma: ^6.19.3 react: ^19.2.4 @@ -66,3 +66,4 @@ minimumReleaseAgeExclude: - '@oxlint/binding-win32-ia32-msvc@1.75.0' - '@oxlint/binding-win32-x64-msvc@1.75.0' - oxlint@1.75.0 + - graphql-upload@17.1.0 diff --git a/tests/admin-ui-tests/live-reloading.test.ts b/tests/admin-ui-tests/live-reloading.test.ts index b5fb9a36538..750fb8f46c6 100644 --- a/tests/admin-ui-tests/live-reloading.test.ts +++ b/tests/admin-ui-tests/live-reloading.test.ts @@ -93,8 +93,8 @@ test('updates to the Keystone schema are propagated', async () => { type Query { something(where: SomethingWhereUniqueInput!): Something - somethings(where: SomethingWhereInput! = {}, orderBy: [SomethingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SomethingWhereUniqueInput): [Something!] - somethingsCount(where: SomethingWhereInput! = {}): Int + somethings(where: SomethingWhereInput! = { }, orderBy: [SomethingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SomethingWhereUniqueInput): [Something!] + somethingsCount(where: SomethingWhereInput! = { }): Int keystone: KeystoneMeta! someNumber: Int! }" diff --git a/tests/api-tests/fields/types/relationship.test.ts b/tests/api-tests/fields/types/relationship.test.ts index 3311eca58fb..47cb5d797fc 100644 --- a/tests/api-tests/fields/types/relationship.test.ts +++ b/tests/api-tests/fields/types/relationship.test.ts @@ -126,8 +126,8 @@ describe('Type Generation', () => { expect(printType(schema.getType('Test')!)).toMatchInlineSnapshot(` "type Test { id: ID! - foo(where: ZipWhereInput! = {}, orderBy: [ZipOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ZipWhereUniqueInput): [Zip!] - fooCount(where: ZipWhereInput! = {}): Int + foo(where: ZipWhereInput! = { }, orderBy: [ZipOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ZipWhereUniqueInput): [Zip!] + fooCount(where: ZipWhereInput! = { }): Int }" `) }) diff --git a/tests/api-tests/package.json b/tests/api-tests/package.json index b49f59a0695..45edff15922 100644 --- a/tests/api-tests/package.json +++ b/tests/api-tests/package.json @@ -26,7 +26,7 @@ "cookie-signature": "^1.1.0", "globby": "^11.0.4", "graphql": "catalog:", - "graphql-upload": "^15.0.2", + "graphql-upload": "^17.1.0", "mime": "^3.0.0", "next": "catalog:", "prisma": "catalog:", diff --git a/tests/cli-tests/fixtures/basic-project/schema.graphql b/tests/cli-tests/fixtures/basic-project/schema.graphql index 9c431cd4ad5..1ff87ca82e3 100644 --- a/tests/cli-tests/fixtures/basic-project/schema.graphql +++ b/tests/cli-tests/fixtures/basic-project/schema.graphql @@ -96,8 +96,8 @@ type Mutation { type Query { todo(where: TodoWhereUniqueInput!): Todo - todos(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - todosCount(where: TodoWhereInput! = {}): Int + todos(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + todosCount(where: TodoWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/tests/cli-tests/fixtures/custom-prisma-project/schema.graphql b/tests/cli-tests/fixtures/custom-prisma-project/schema.graphql index 56e177c0ce9..11621df300e 100644 --- a/tests/cli-tests/fixtures/custom-prisma-project/schema.graphql +++ b/tests/cli-tests/fixtures/custom-prisma-project/schema.graphql @@ -95,9 +95,9 @@ type Mutation { } type Query { - todos(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + todos(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] todo(where: TodoWhereUniqueInput!): Todo - todosCount(where: TodoWhereInput! = {}): Int + todosCount(where: TodoWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/tests/examples-smoke-tests/extend-graphql-schema-nexus.test.ts b/tests/examples-smoke-tests/extend-graphql-schema-nexus.test.ts deleted file mode 100644 index 96503f8159d..00000000000 --- a/tests/examples-smoke-tests/extend-graphql-schema-nexus.test.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { Browser, Page } from 'playwright' -import { exampleProjectTests, loadIndex } from './utils' - -exampleProjectTests('extend-graphql-schema-nexus', browserType => { - let browser: Browser = undefined as any - let page: Page = undefined as any - beforeAll(async () => { - browser = await browserType.launch() - page = await browser.newPage() - await loadIndex(page) - }) - test('Load list', async () => { - await Promise.all([page.waitForNavigation(), page.click('h3:has-text("Authors")')]) - await page.waitForSelector('a:has-text("New Author")') - }) - afterAll(async () => { - await browser.close() - }) -}) diff --git a/tests/sandbox/schema.graphql b/tests/sandbox/schema.graphql index f5f4448cd90..a42efdc6158 100644 --- a/tests/sandbox/schema.graphql +++ b/tests/sandbox/schema.graphql @@ -12,11 +12,11 @@ type Thing { password: PasswordState toOneRelationship: User toOneRelationshipAlternateLabel: User - toManyRelationship(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - toManyRelationshipCount(where: TodoWhereInput! = {}): Int + toManyRelationship(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + toManyRelationshipCount(where: TodoWhereInput! = { }): Int toOneRelationshipCard: User - toManyRelationshipCard(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - toManyRelationshipCardCount(where: TodoWhereInput! = {}): Int + toManyRelationshipCard(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + toManyRelationshipCardCount(where: TodoWhereInput! = { }): Int calendarDay: CalendarDay randomNumberVirtual: Float select: String @@ -517,8 +517,8 @@ type User { name: String email: String password: PasswordState - tasks(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - tasksCount(where: TodoWhereInput! = {}): Int + tasks(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + tasksCount(where: TodoWhereInput! = { }): Int createdAt: DateTime updatedAt: DateTime } @@ -603,7 +603,7 @@ input SettingsUpdateInput { } input SettingsUpdateArgs { - where: SettingsWhereUniqueInput! = {id: 1} + where: SettingsWhereUniqueInput! = { id: 1 } data: SettingsUpdateInput! } @@ -639,25 +639,25 @@ type Mutation { deleteUsers(where: [UserWhereUniqueInput!]!): [User] createSettings(data: SettingsCreateInput!): Settings createManySettings(data: [SettingsCreateInput!]!): [Settings] - updateSettings(where: SettingsWhereUniqueInput! = {id: 1}, data: SettingsUpdateInput!): Settings + updateSettings(where: SettingsWhereUniqueInput! = { id: 1 }, data: SettingsUpdateInput!): Settings updateManySettings(data: [SettingsUpdateArgs!]!): [Settings] - deleteSettings(where: SettingsWhereUniqueInput! = {id: 1}): Settings + deleteSettings(where: SettingsWhereUniqueInput! = { id: 1 }): Settings deleteManySettings(where: [SettingsWhereUniqueInput!]!): [Settings] } type Query { thing(where: ThingWhereUniqueInput!): Thing - things(where: ThingWhereInput! = {}, orderBy: [ThingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ThingWhereUniqueInput): [Thing!] - thingsCount(where: ThingWhereInput! = {}): Int + things(where: ThingWhereInput! = { }, orderBy: [ThingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: ThingWhereUniqueInput): [Thing!] + thingsCount(where: ThingWhereInput! = { }): Int todo(where: TodoWhereUniqueInput!): Todo - todos(where: TodoWhereInput! = {}, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] - todosCount(where: TodoWhereInput! = {}): Int + todos(where: TodoWhereInput! = { }, orderBy: [TodoOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TodoWhereUniqueInput): [Todo!] + todosCount(where: TodoWhereInput! = { }): Int user(where: UserWhereUniqueInput!): User - users(where: UserWhereInput! = {}, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] - usersCount(where: UserWhereInput! = {}): Int - settings(where: SettingsWhereUniqueInput! = {id: 1}): Settings - manySettings(where: SettingsWhereInput! = {id: {equals: 1}}, orderBy: [SettingsOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SettingsWhereUniqueInput): [Settings!] - manySettingsCount(where: SettingsWhereInput! = {id: {equals: 1}}): Int + users(where: UserWhereInput! = { }, orderBy: [UserOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: UserWhereUniqueInput): [User!] + usersCount(where: UserWhereInput! = { }): Int + settings(where: SettingsWhereUniqueInput! = { id: 1 }): Settings + manySettings(where: SettingsWhereInput! = { id: { equals: 1 } }, orderBy: [SettingsOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SettingsWhereUniqueInput): [Settings!] + manySettingsCount(where: SettingsWhereInput! = { id: { equals: 1 } }): Int keystone: KeystoneMeta! } diff --git a/tests/test-projects/basic/schema.graphql b/tests/test-projects/basic/schema.graphql index a70d1f939d5..86c91bfa24c 100644 --- a/tests/test-projects/basic/schema.graphql +++ b/tests/test-projects/basic/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -268,14 +268,14 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int secretPlan(where: SecretPlanWhereUniqueInput!): SecretPlan - secretPlans(where: SecretPlanWhereInput! = {}, orderBy: [SecretPlanOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SecretPlanWhereUniqueInput): [SecretPlan!] - secretPlansCount(where: SecretPlanWhereInput! = {}): Int + secretPlans(where: SecretPlanWhereInput! = { }, orderBy: [SecretPlanOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SecretPlanWhereUniqueInput): [SecretPlan!] + secretPlansCount(where: SecretPlanWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/tests/test-projects/crud-notifications/schema.graphql b/tests/test-projects/crud-notifications/schema.graphql index e2d52cf232f..8c22d3b5ec8 100644 --- a/tests/test-projects/crud-notifications/schema.graphql +++ b/tests/test-projects/crud-notifications/schema.graphql @@ -144,8 +144,8 @@ input PersonRelateToOneForCreateInput { type Person { id: ID! name: String - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int } input PersonWhereUniqueInput { @@ -222,11 +222,11 @@ type Mutation { type Query { task(where: TaskWhereUniqueInput!): Task - tasks(where: TaskWhereInput! = {}, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] - tasksCount(where: TaskWhereInput! = {}): Int + tasks(where: TaskWhereInput! = { }, orderBy: [TaskOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: TaskWhereUniqueInput): [Task!] + tasksCount(where: TaskWhereInput! = { }): Int person(where: PersonWhereUniqueInput!): Person - people(where: PersonWhereInput! = {}, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] - peopleCount(where: PersonWhereInput! = {}): Int + people(where: PersonWhereInput! = { }, orderBy: [PersonOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: PersonWhereUniqueInput): [Person!] + peopleCount(where: PersonWhereInput! = { }): Int keystone: KeystoneMeta! } diff --git a/tests/test-projects/live-reloading/schema.graphql b/tests/test-projects/live-reloading/schema.graphql index e9513ab3740..fa8aead66f0 100644 --- a/tests/test-projects/live-reloading/schema.graphql +++ b/tests/test-projects/live-reloading/schema.graphql @@ -96,8 +96,8 @@ type Mutation { type Query { something(where: SomethingWhereUniqueInput!): Something - somethings(where: SomethingWhereInput! = {}, orderBy: [SomethingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SomethingWhereUniqueInput): [Something!] - somethingsCount(where: SomethingWhereInput! = {}): Int + somethings(where: SomethingWhereInput! = { }, orderBy: [SomethingOrderByInput!]! = [], take: Int, skip: Int! = 0, cursor: SomethingWhereUniqueInput): [Something!] + somethingsCount(where: SomethingWhereInput! = { }): Int keystone: KeystoneMeta! someNumber: Int }