From 8832dd67cfc30faa920dc17831cb241bca757911 Mon Sep 17 00:00:00 2001 From: Darrell Warde <8117355+darrellwarde@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:56:02 +0100 Subject: [PATCH] Remove non-suffixed relationship filters (#5637) --- .changeset/clever-mice-pay.md | 6 + .../schema/generation/augment-where-input.ts | 29 +- .../src/schema/generation/where-input.ts | 8 +- packages/graphql/src/types/index.ts | 1 - .../where/field-aggregation-where.int.test.ts | 26 +- .../connections/filtering.int.test.ts | 6 +- .../tests/integration/delete.int.test.ts | 2 +- .../integration/field-filtering.int.test.ts | 2 +- .../filtering/advanced-filtering.int.test.ts | 12 +- ...r-interface-relationship-alias.int.test.ts | 2 +- .../filtering/single-relationship.int.test.ts | 2 +- ... => interface-one-level-chain.int.test.ts} | 0 ...e.test.ts => interface-simple.int.test.ts} | 0 ...> interface-three-level-chain.int.test.ts} | 0 ... => interface-two-level-chain.int.test.ts} | 0 ...s => type-narrowing-mutations.int.test.ts} | 0 ...t.ts => type-narrowing-nested.int.test.ts} | 0 ...ing.test.ts => type-narrowing.int.test.ts} | 2 +- .../tests/integration/issues/1628.int.test.ts | 2 +- .../tests/integration/issues/190.int.test.ts | 4 +- .../tests/integration/issues/2670.int.test.ts | 54 +-- .../tests/integration/issues/2708.int.test.ts | 56 +-- .../tests/integration/issues/4056.int.test.ts | 4 +- .../tests/integration/issues/4118.int.test.ts | 8 +- .../tests/integration/issues/4170.int.test.ts | 10 +- .../tests/integration/issues/4223.int.test.ts | 10 +- .../tests/integration/issues/4239.int.test.ts | 2 +- .../tests/integration/issues/4429.int.test.ts | 8 +- .../tests/integration/issues/488.int.test.ts | 2 +- .../tests/integration/issues/5023.int.test.ts | 10 +- .../tests/integration/issues/505.int.test.ts | 6 +- .../tests/integration/issues/5080.int.test.ts | 6 +- .../tests/integration/issues/582.int.test.ts | 10 +- .../tests/integration/issues/988.int.test.ts | 6 +- .../unions/unions-top-level.int.test.ts | 4 +- .../tests/integration/update.int.test.ts | 4 +- .../graphql/tests/schema/aggregations.test.ts | 2 - .../tests/schema/array-methods.test.ts | 4 - .../tests/schema/authorization.test.ts | 2 - .../graphql/tests/schema/comments.test.ts | 6 - .../tests/schema/connect-or-create-id.test.ts | 4 - .../schema/connect-or-create-unions.test.ts | 2 - .../tests/schema/connect-or-create.test.ts | 4 - .../tests/schema/connections/enums.test.ts | 4 - .../schema/connections/interfaces.test.ts | 6 - .../tests/schema/connections/sort.test.ts | 4 - .../tests/schema/connections/unions.test.ts | 6 - .../tests/schema/directive-preserve.test.ts | 28 -- .../tests/schema/directives/alias.test.ts | 2 - .../schema/directives/filterable.test.ts | 74 ---- .../schema/directives/populatedBy.test.ts | 4 - .../directives/relationship-aggregate.test.ts | 12 - .../relationship-nested-operations.test.ts | 68 --- .../relationship-properties.test.ts | 12 - .../schema/directives/relationship.test.ts | 6 - .../schema/directives/selectable.test.ts | 12 - .../tests/schema/directives/settable.test.ts | 44 -- .../graphql/tests/schema/federation.test.ts | 2 - .../graphql/tests/schema/inheritance.test.ts | 4 - .../schema/interface-relationships.test.ts | 58 --- .../graphql/tests/schema/interfaces.test.ts | 8 - .../graphql/tests/schema/issues/1182.test.ts | 2 - .../graphql/tests/schema/issues/2187.test.ts | 4 - .../graphql/tests/schema/issues/2377.test.ts | 2 - .../graphql/tests/schema/issues/2969.test.ts | 2 - .../graphql/tests/schema/issues/2993.test.ts | 2 - .../graphql/tests/schema/issues/3428.test.ts | 4 - .../graphql/tests/schema/issues/3439.test.ts | 10 - .../graphql/tests/schema/issues/3541.test.ts | 4 - .../graphql/tests/schema/issues/3698.test.ts | 6 - .../graphql/tests/schema/issues/3816.test.ts | 4 - .../graphql/tests/schema/issues/3817.test.ts | 2 - .../graphql/tests/schema/issues/4615.test.ts | 8 - .../graphql/tests/schema/issues/5435.test.ts | 403 ------------------ .../graphql/tests/schema/issues/872.test.ts | 4 - .../tests/schema/lowercase-type-names.test.ts | 4 - packages/graphql/tests/schema/math.test.ts | 10 - .../schema/nested-aggregation-on-type.test.ts | 2 - .../schema/pluralize-consistency.test.ts | 2 - .../tests/schema/query-direction.test.ts | 6 - .../remove-deprecated/aggregations.test.ts | 2 - .../remove-deprecated/array-methods.test.ts | 1 - .../schema/remove-deprecated/comments.test.ts | 4 - .../implicit-equality.test.ts | 1 - .../options-argument.test.ts | 1 - .../update-operations.test.ts | 2 - .../tests/schema/string-comparators.test.ts | 4 - .../tests/schema/subscriptions.test.ts | 24 -- .../union-interface-relationship.test.ts | 10 - packages/graphql/tests/schema/unions.test.ts | 2 - .../tests/tck/advanced-filtering.test.ts | 9 +- .../filtering/interface-relationships.test.ts | 2 +- .../filtering/node/relationship.test.ts | 2 +- .../filtering/relationship/or.test.ts | 6 +- .../tck/directives/node/node-label.test.ts | 12 +- .../tests/tck/directives/vector/auth.test.ts | 8 +- .../graphql/tests/tck/fulltext/auth.test.ts | 32 +- .../graphql/tests/tck/issues/1221.test.ts | 2 +- .../graphql/tests/tck/issues/1628.test.ts | 2 +- packages/graphql/tests/tck/issues/190.test.ts | 6 +- .../graphql/tests/tck/issues/2670.test.ts | 28 +- .../graphql/tests/tck/issues/2708.test.ts | 22 +- .../graphql/tests/tck/issues/2925.test.ts | 4 +- .../graphql/tests/tck/issues/4118.test.ts | 10 +- .../graphql/tests/tck/issues/4170.test.ts | 12 +- .../graphql/tests/tck/issues/4223.test.ts | 14 +- .../graphql/tests/tck/issues/4239.test.ts | 14 +- .../graphql/tests/tck/issues/4429.test.ts | 12 +- packages/graphql/tests/tck/issues/488.test.ts | 2 +- .../graphql/tests/tck/issues/5023.test.ts | 18 +- packages/graphql/tests/tck/issues/505.test.ts | 8 +- .../graphql/tests/tck/issues/5080.test.ts | 8 +- packages/graphql/tests/tck/issues/582.test.ts | 10 +- packages/graphql/tests/tck/issues/988.test.ts | 6 +- ...-always-resolved-on-cypher-queries.test.ts | 12 +- packages/graphql/tests/tck/null.test.ts | 4 +- packages/ogm/src/generate.test.ts | 12 - packages/ogm/tests/issues/3591.test.ts | 8 - 118 files changed, 307 insertions(+), 1192 deletions(-) create mode 100644 .changeset/clever-mice-pay.md rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{interface-one-level-chain.test.ts => interface-one-level-chain.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{interface-simple.test.ts => interface-simple.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{interface-three-level-chain.test.ts => interface-three-level-chain.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{interface-two-level-chain.test.ts => interface-two-level-chain.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{type-narrowing-mutations.test.ts => type-narrowing-mutations.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{type-narrowing-nested.test.ts => type-narrowing-nested.int.test.ts} (100%) rename packages/graphql/tests/integration/interfaces/relationships/declare-relationship/{type-narrowing.test.ts => type-narrowing.int.test.ts} (99%) delete mode 100644 packages/graphql/tests/schema/issues/5435.test.ts diff --git a/.changeset/clever-mice-pay.md b/.changeset/clever-mice-pay.md new file mode 100644 index 0000000000..df033ad00f --- /dev/null +++ b/.changeset/clever-mice-pay.md @@ -0,0 +1,6 @@ +--- +"@neo4j/graphql": major +"@neo4j/graphql-ogm": major +--- + +Remove deprecated relationship filters without suffix. Queries which previously used these should migrate over to `_SOME` filters. diff --git a/packages/graphql/src/schema/generation/augment-where-input.ts b/packages/graphql/src/schema/generation/augment-where-input.ts index adb92e2baf..5ef2b9e7db 100644 --- a/packages/graphql/src/schema/generation/augment-where-input.ts +++ b/packages/graphql/src/schema/generation/augment-where-input.ts @@ -18,11 +18,8 @@ */ import type { Directive, InputTypeComposerFieldConfigMapDefinition } from "graphql-compose"; -import { DEPRECATED } from "../../constants"; import type { RelationshipAdapter } from "../../schema-model/relationship/model-adapters/RelationshipAdapter"; import type { RelationshipDeclarationAdapter } from "../../schema-model/relationship/model-adapters/RelationshipDeclarationAdapter"; -import type { Neo4jFeaturesSettings } from "../../types"; -import { shouldAddDeprecatedFields } from "./utils"; function augmentWhereInputType({ whereType, @@ -30,7 +27,6 @@ function augmentWhereInputType({ filters, relationshipAdapter, deprecatedDirectives, - features, }: { whereType: string; fieldName: string; @@ -42,14 +38,13 @@ function augmentWhereInputType({ | undefined; relationshipAdapter: RelationshipAdapter | RelationshipDeclarationAdapter; deprecatedDirectives: Directive[]; - features: Neo4jFeaturesSettings | undefined; }): InputTypeComposerFieldConfigMapDefinition { const fields: InputTypeComposerFieldConfigMapDefinition = {}; if (!relationshipAdapter.isFilterableByValue()) { return fields; } - if (!relationshipAdapter.isList || shouldAddDeprecatedFields(features, "arrayFilters")) { + if (!relationshipAdapter.isList) { fields[fieldName] = { type: whereType, }; @@ -63,20 +58,6 @@ function augmentWhereInputType({ // e.g. "Return Movies where all of the related Actors match this filter" description: filterField.description, }; - - if (shouldAddDeprecatedFields(features, "arrayFilters")) { - // TODO: are these deprecations still relevant? - // only adding these for the deprecation message. If no deprecation anymore, delete them. - fields[fieldName] = { - type: whereType, - directives: [ - { - name: DEPRECATED, - args: { reason: `Use \`${fieldName}_SOME\` instead.` }, - }, - ], - }; - } } } @@ -85,8 +66,7 @@ function augmentWhereInputType({ export function augmentWhereInputTypeWithRelationshipFields( relationshipAdapter: RelationshipAdapter | RelationshipDeclarationAdapter, - deprecatedDirectives: Directive[], - features: Neo4jFeaturesSettings | undefined + deprecatedDirectives: Directive[] ): InputTypeComposerFieldConfigMapDefinition { const filters = relationshipAdapter.listFiltersModel?.filters; return augmentWhereInputType({ @@ -95,14 +75,12 @@ export function augmentWhereInputTypeWithRelationshipFields( filters, relationshipAdapter, deprecatedDirectives, - features, }); } export function augmentWhereInputTypeWithConnectionFields( relationshipAdapter: RelationshipAdapter | RelationshipDeclarationAdapter, - deprecatedDirectives: Directive[], - features: Neo4jFeaturesSettings | undefined + deprecatedDirectives: Directive[] ): InputTypeComposerFieldConfigMapDefinition { const filters = relationshipAdapter.listFiltersModel?.connectionFilters; return augmentWhereInputType({ @@ -111,6 +89,5 @@ export function augmentWhereInputTypeWithConnectionFields( filters, relationshipAdapter, deprecatedDirectives, - features, }); } diff --git a/packages/graphql/src/schema/generation/where-input.ts b/packages/graphql/src/schema/generation/where-input.ts index 92a3f0f383..3bb14b31a9 100644 --- a/packages/graphql/src/schema/generation/where-input.ts +++ b/packages/graphql/src/schema/generation/where-input.ts @@ -192,14 +192,10 @@ export function withSourceWhereInputType({ const relationshipTarget = relationshipAdapter.target; const relationshipSource = relationshipAdapter.source; const whereInput = composer.getITC(relationshipSource.operations.whereInputTypeName); - const fields = augmentWhereInputTypeWithRelationshipFields(relationshipAdapter, deprecatedDirectives, features); + const fields = augmentWhereInputTypeWithRelationshipFields(relationshipAdapter, deprecatedDirectives); whereInput.addFields(fields); - const connectionFields = augmentWhereInputTypeWithConnectionFields( - relationshipAdapter, - deprecatedDirectives, - features - ); + const connectionFields = augmentWhereInputTypeWithConnectionFields(relationshipAdapter, deprecatedDirectives); whereInput.addFields(connectionFields); // TODO: Current unions are not supported as relationship targets beyond the above fields diff --git a/packages/graphql/src/types/index.ts b/packages/graphql/src/types/index.ts index 3388d97776..562c71db5d 100644 --- a/packages/graphql/src/types/index.ts +++ b/packages/graphql/src/types/index.ts @@ -477,7 +477,6 @@ export type Neo4jFeaturesSettings = { **/ excludeDeprecatedFields?: { implicitEqualFilters?: boolean; - arrayFilters?: boolean; aggregationFilters?: boolean; deprecatedOptionsArgument?: boolean; nestedUpdateOperationsFields?: boolean; diff --git a/packages/graphql/tests/integration/aggregations/field-level/where/field-aggregation-where.int.test.ts b/packages/graphql/tests/integration/aggregations/field-level/where/field-aggregation-where.int.test.ts index 4d1d3e4bbb..ea4a76cb49 100644 --- a/packages/graphql/tests/integration/aggregations/field-level/where/field-aggregation-where.int.test.ts +++ b/packages/graphql/tests/integration/aggregations/field-level/where/field-aggregation-where.int.test.ts @@ -31,7 +31,7 @@ describe("Field Level Aggregations Where", () => { typeMovie = testHelper.createUniqueType("Movie"); typePerson = testHelper.createUniqueType("Person"); - typeDefs = ` + typeDefs = /* GraphQL */ ` type ${typeMovie.name} @node { title: String actors: [${typePerson.name}!]! @relationship(type: "ACTED_IN", direction: IN, properties:"ActedIn") @@ -61,7 +61,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes where string equals", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {name_EQ: "Linda"}) { @@ -80,7 +80,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with OR query", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {OR: [{name_EQ: "Linda"}, {name_EQ: "Arnold"}]}) { @@ -99,7 +99,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with nested aggregation", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {moviesAggregate: { count_EQ: 1}}) { @@ -117,10 +117,10 @@ describe("Field Level Aggregations Where", () => { describe("Using connections in where", () => { test("Count nodes with where in connection node", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typePerson.plural} { - moviesAggregate(where:{actorsConnection: { node: { name_EQ: "Linda" } }}){ + moviesAggregate(where:{actorsConnection_SOME: { node: { name_EQ: "Linda" } }}){ count } } @@ -134,10 +134,10 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with where in connection edge", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typePerson.plural} { - moviesAggregate(where:{actorsConnection: {edge: {screentime_GT: 10}}}){ + moviesAggregate(where:{actorsConnection_SOME: {edge: {screentime_GT: 10}}}){ count } } @@ -151,10 +151,10 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with where in connection node using OR", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typePerson.plural} { - moviesAggregate(where:{actorsConnection: {node: {OR: [{ name_EQ: "Linda" },{ name_EQ: "Arnold" } ]}}}){ + moviesAggregate(where:{actorsConnection_SOME: {node: {OR: [{ name_EQ: "Linda" },{ name_EQ: "Arnold" } ]}}}){ count } } @@ -169,7 +169,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with where using IN strings", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {name_IN: ["Linda", "Arnold"]}) { @@ -188,7 +188,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with where using IN ints", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {age_IN: [40, 60, 37]}) { @@ -207,7 +207,7 @@ describe("Field Level Aggregations Where", () => { }); test("Count nodes with datetime filter", async () => { - const query = ` + const query = /* GraphQL */ ` query { ${typeMovie.plural} { actorsAggregate(where: {born_GT: "2000-01-01"}) { diff --git a/packages/graphql/tests/integration/connections/filtering.int.test.ts b/packages/graphql/tests/integration/connections/filtering.int.test.ts index b45063f502..8e9f0ff84d 100644 --- a/packages/graphql/tests/integration/connections/filtering.int.test.ts +++ b/packages/graphql/tests/integration/connections/filtering.int.test.ts @@ -56,7 +56,7 @@ describe("Connections Filtering", () => { const query = ` query ($movieTitle: String!) { ${movieType.plural}(where: { title_EQ: $movieTitle }) { - actorsConnection(where: {node: {movies: { title_EQ: $movieTitle } } }) { + actorsConnection(where: {node: {movies_SOME: { title_EQ: $movieTitle } } }) { edges { node { name @@ -101,7 +101,7 @@ describe("Connections Filtering", () => { const query = ` query { - ${movieType.plural} (where: {actorsConnection: { OR: [{ node: { name_EQ: "${actor1Name}" } }, { node: { name_EQ: "${actor2Name}" } }]}}){ + ${movieType.plural} (where: {actorsConnection_SOME: { OR: [{ node: { name_EQ: "${actor1Name}" } }, { node: { name_EQ: "${actor2Name}" } }]}}){ actorsConnection { edges { node { @@ -151,7 +151,7 @@ describe("Connections Filtering", () => { const query = ` query { - ${movieType.plural} (where: {actorsConnection: { NOT: { node: { name_EQ: "${actor1Name}" } } } }){ + ${movieType.plural} (where: {actorsConnection_SOME: { NOT: { node: { name_EQ: "${actor1Name}" } } } }){ actorsConnection { edges { node { diff --git a/packages/graphql/tests/integration/delete.int.test.ts b/packages/graphql/tests/integration/delete.int.test.ts index f67db02b4b..07548743ba 100644 --- a/packages/graphql/tests/integration/delete.int.test.ts +++ b/packages/graphql/tests/integration/delete.int.test.ts @@ -323,7 +323,7 @@ describe("delete", () => { const mutation = ` mutation($name: String) { - ${Movie.operations.delete}(where: { actorsConnection: { node: { name_EQ: $name } } } ) { + ${Movie.operations.delete}(where: { actorsConnection_SOME: { node: { name_EQ: $name } } } ) { nodesDeleted relationshipsDeleted } diff --git a/packages/graphql/tests/integration/field-filtering.int.test.ts b/packages/graphql/tests/integration/field-filtering.int.test.ts index 70c5c7ac1e..6280c463ab 100644 --- a/packages/graphql/tests/integration/field-filtering.int.test.ts +++ b/packages/graphql/tests/integration/field-filtering.int.test.ts @@ -70,7 +70,7 @@ describe("field-filtering", () => { { ${Movie.plural}(where: { title_EQ: "${movieTitle}" }) { title - genres(where: { seriesConnection: { node: { name_EQ: "${seriesName}" } } }) { + genres(where: { seriesConnection_SOME: { node: { name_EQ: "${seriesName}" } } }) { name series { name diff --git a/packages/graphql/tests/integration/filtering/advanced-filtering.int.test.ts b/packages/graphql/tests/integration/filtering/advanced-filtering.int.test.ts index d18d9ffc1c..7906479bd0 100644 --- a/packages/graphql/tests/integration/filtering/advanced-filtering.int.test.ts +++ b/packages/graphql/tests/integration/filtering/advanced-filtering.int.test.ts @@ -1057,7 +1057,7 @@ describe("Advanced Filtering", () => { const query = ` { - ${randomType1.plural}(where: { ${randomType2.plural}: { id_EQ: "${relationId}" } }) { + ${randomType1.plural}(where: { ${randomType2.plural}_SOME: { id_EQ: "${relationId}" } }) { id ${randomType2.plural} { id @@ -1111,7 +1111,7 @@ describe("Advanced Filtering", () => { const query = ` { - ${Movie.plural}(where: { genresConnection: { node: { id_EQ: "${genreId}" } } }) { + ${Movie.plural}(where: { genresConnection_SOME: { node: { id_EQ: "${genreId}" } } }) { id genres { id @@ -1176,7 +1176,7 @@ describe("Advanced Filtering", () => { const query = ` { - ${Movie.plural}(where: { genresConnection: { edge: { id_EQ: "${actedInId}" } } }) { + ${Movie.plural}(where: { genresConnection_SOME: { edge: { id_EQ: "${actedInId}" } } }) { id genres { id @@ -1240,7 +1240,7 @@ describe("Advanced Filtering", () => { const query = ` { - ${Movie.plural}(where: { genresConnection: { node: { id_EQ: "${genreId}" } edge: { id_EQ: "${actedInId}" } } }) { + ${Movie.plural}(where: { genresConnection_SOME: { node: { id_EQ: "${genreId}" } edge: { id_EQ: "${actedInId}" } } }) { id genres { id @@ -1310,7 +1310,7 @@ describe("Advanced Filtering", () => { const query = /* GraphQL */ ` { - ${randomType1.plural}(where: { NOT: { ${randomType2.plural}: { id_EQ: "${relationId2}" } } }) { + ${randomType1.plural}(where: { NOT: { ${randomType2.plural}_SOME: { id_EQ: "${relationId2}" } } }) { id ${randomType2.plural} { id @@ -1842,7 +1842,7 @@ describe("Advanced Filtering", () => { const nullQuery = ` { - ${randomType1.plural}(where: { ${randomType2.plural}: null }) { + ${randomType1.plural}(where: { ${randomType2.plural}_SOME: null }) { id } } diff --git a/packages/graphql/tests/integration/filtering/filter-interface-relationship-alias.int.test.ts b/packages/graphql/tests/integration/filtering/filter-interface-relationship-alias.int.test.ts index 1cf426819b..6414c75896 100644 --- a/packages/graphql/tests/integration/filtering/filter-interface-relationship-alias.int.test.ts +++ b/packages/graphql/tests/integration/filtering/filter-interface-relationship-alias.int.test.ts @@ -62,7 +62,7 @@ describe("interface relationships aliased fields", () => { actedIn: [Production!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn") } - type ${ProtectedActor} @node @authorization(validate: [{ where: { node: { actedInConnection: { node: { title_EQ: "$jwt.title" } } } } }]) { + type ${ProtectedActor} @node @authorization(validate: [{ where: { node: { actedInConnection_SOME: { node: { title_EQ: "$jwt.title" } } } } }]) { name: String! @alias(property: "dbName") actedIn: [Production!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn") } diff --git a/packages/graphql/tests/integration/filtering/single-relationship.int.test.ts b/packages/graphql/tests/integration/filtering/single-relationship.int.test.ts index 698ca2f71f..19e2d73686 100644 --- a/packages/graphql/tests/integration/filtering/single-relationship.int.test.ts +++ b/packages/graphql/tests/integration/filtering/single-relationship.int.test.ts @@ -92,7 +92,7 @@ describe("Single relationship (1-*) filtering", () => { const query = ` query { ${Person.plural}( - where: { actedIn: { OR: [{ director: { name_EQ: "Jon Wu" } }, { producer: { name_EQ: "Jon Wu" } }] } } + where: { actedIn_SOME: { OR: [{ director: { name_EQ: "Jon Wu" } }, { producer: { name_EQ: "Jon Wu" } }] } } ) { name } diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-one-level-chain.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-one-level-chain.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-one-level-chain.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-one-level-chain.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-simple.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-simple.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-simple.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-simple.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-three-level-chain.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-three-level-chain.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-three-level-chain.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-three-level-chain.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-two-level-chain.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-two-level-chain.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-two-level-chain.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/interface-two-level-chain.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-mutations.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-mutations.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-mutations.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-mutations.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-nested.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-nested.int.test.ts similarity index 100% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-nested.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing-nested.int.test.ts diff --git a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.test.ts b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.int.test.ts similarity index 99% rename from packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.test.ts rename to packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.int.test.ts index 4da109df44..160dc28d23 100644 --- a/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.test.ts +++ b/packages/graphql/tests/integration/interfaces/relationships/declare-relationship/type-narrowing.int.test.ts @@ -569,7 +569,7 @@ describe("type narrowing - simple case", () => { const query = /* GraphQL */ ` query People { - people(where: { actedInConnection: { edge: { ActedIn: { screenTime_EQ: ${movieScreenTime} }, AppearsIn: { sceneNr_EQ: ${sceneNr} } } } }) { + people(where: { actedInConnection_SOME: { edge: { ActedIn: { screenTime_EQ: ${movieScreenTime} }, AppearsIn: { sceneNr_EQ: ${sceneNr} } } } }) { name actedInConnection { edges { diff --git a/packages/graphql/tests/integration/issues/1628.int.test.ts b/packages/graphql/tests/integration/issues/1628.int.test.ts index 8d24e64550..9cef9a5e4f 100644 --- a/packages/graphql/tests/integration/issues/1628.int.test.ts +++ b/packages/graphql/tests/integration/issues/1628.int.test.ts @@ -50,7 +50,7 @@ describe("https://github.com/neo4j/graphql/issues/1628", () => { test("Nested filter with limit cypher should be composed correctly", async () => { const query = /* GraphQL */ ` { - ${workType.plural}(limit: 1, where: { title: { value_CONTAINS: "0777" } }) { + ${workType.plural}(limit: 1, where: { title_SOME: { value_CONTAINS: "0777" } }) { title(where: { value_CONTAINS: "0777" }) { value } diff --git a/packages/graphql/tests/integration/issues/190.int.test.ts b/packages/graphql/tests/integration/issues/190.int.test.ts index 2e39f87d68..7b1c4c0271 100644 --- a/packages/graphql/tests/integration/issues/190.int.test.ts +++ b/packages/graphql/tests/integration/issues/190.int.test.ts @@ -67,7 +67,7 @@ describe("https://github.com/neo4j/graphql/issues/190", () => { test("Example 1", async () => { const query = /* GraphQL */ ` query { - ${User.plural}(where: { demographics: { type_EQ: "Gender", value_EQ: "Female" } }) { + ${User.plural}(where: { demographics_SOME: { type_EQ: "Gender", value_EQ: "Female" } }) { uid demographics { type @@ -101,7 +101,7 @@ describe("https://github.com/neo4j/graphql/issues/190", () => { query { ${User.plural}( where: { - demographics: { OR: [{ type_EQ: "Gender", value_EQ: "Female" }, { type_EQ: "State" }, { type_EQ: "Age" }] } + demographics_SOME: { OR: [{ type_EQ: "Gender", value_EQ: "Female" }, { type_EQ: "State" }, { type_EQ: "Age" }] } } ) { uid diff --git a/packages/graphql/tests/integration/issues/2670.int.test.ts b/packages/graphql/tests/integration/issues/2670.int.test.ts index f364f3ba78..2a997ada07 100644 --- a/packages/graphql/tests/integration/issues/2670.int.test.ts +++ b/packages/graphql/tests/integration/issues/2670.int.test.ts @@ -52,7 +52,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { seriesType = testHelper.createUniqueType("Series"); inGenreInterface = testHelper.createUniqueType("InGenre"); - const typeDefs = ` + const typeDefs = /* GraphQL */ ` type ${movieType.name} @node { title: String genres: [${genreType.name}!]! @relationship(type: "IN_GENRE", direction: OUT, properties: "${inGenreInterface.name}") @@ -95,9 +95,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate count equal", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { count_EQ: 2 } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title } } @@ -119,9 +119,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate count_LT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { count_LT: 3 } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_LT: 3 } } } }) { title } } @@ -143,9 +143,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate count_GT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { count_GT: 2 } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_GT: 2 } } } }) { title } } @@ -170,9 +170,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate node property SHORTEST", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { node: { title_SHORTEST_EQUAL: ${movieTitle3.length} } } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { node: { title_SHORTEST_EQUAL: ${movieTitle3.length} } } } } }) { title } } @@ -197,9 +197,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate node property AVERAGE", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { node: { title_AVERAGE_EQUAL: ${genre2AverageTitleLength} } } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { node: { title_AVERAGE_EQUAL: ${genre2AverageTitleLength} } } } } }) { title } } @@ -221,9 +221,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate edge property MAX_LT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { edge: { intValue_MAX_LT: ${intValue3} } } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { edge: { intValue_MAX_LT: ${intValue3} } } } } }) { title } } @@ -245,9 +245,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where moviesAggregate edge property MIN_EQUAL", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { edge: { intValue_MIN_EQUAL: ${intValue1} } } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { edge: { intValue_MIN_EQUAL: ${intValue1} } } } } }) { title } } @@ -272,7 +272,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where genresConnection_SOME and nested count", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title @@ -296,7 +296,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where genresConnection_NONE", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genresConnection_NONE: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title @@ -323,7 +323,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where genresConnection_ALL", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genresConnection_ALL: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title @@ -344,7 +344,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find where genresConnection_SINGLE", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genresConnection_SINGLE: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title @@ -368,9 +368,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find genresConnection with multiple AND aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { AND: [{ node: { moviesAggregate: { count_EQ: 2 } } }, { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }] } }) { + ${movieType.plural}(where: { genresConnection_SOME: { AND: [{ node: { moviesAggregate: { count_EQ: 2 } } }, { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }] } }) { title } } @@ -392,9 +392,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find genresConnection with multiple OR aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { OR: [{ node: { moviesAggregate: { count_EQ: 3 } } }, { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }] } }) { + ${movieType.plural}(where: { genresConnection_SOME: { OR: [{ node: { moviesAggregate: { count_EQ: 3 } } }, { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }] } }) { title } } @@ -422,9 +422,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find genresConnection with multiple implicit AND aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { count_EQ: 2 }, seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 2 }, seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } } }) { title } } @@ -446,9 +446,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { }); test("should find genresConnection with aggregation at the same level", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genresConnection: { node: { moviesAggregate: { count_EQ: 3 } } }, genresAggregate: { count_EQ: 1 } }) { + ${movieType.plural}(where: { genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 3 } } }, genresAggregate: { count_EQ: 1 } }) { title } } diff --git a/packages/graphql/tests/integration/issues/2708.int.test.ts b/packages/graphql/tests/integration/issues/2708.int.test.ts index 6d43669269..d3e31eb0c7 100644 --- a/packages/graphql/tests/integration/issues/2708.int.test.ts +++ b/packages/graphql/tests/integration/issues/2708.int.test.ts @@ -50,7 +50,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { seriesType = testHelper.createUniqueType("Series"); inGenreInterface = testHelper.createUniqueType("InGenre"); - const typeDefs = ` + const typeDefs = /* GraphQL */ ` type ${movieType.name} @node { title: String genres: [${genreType.name}!]! @relationship(type: "IN_GENRE", direction: OUT, properties: "${inGenreInterface.name}") @@ -93,9 +93,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate count equal", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { count_EQ: 2 } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_EQ: 2 } } }) { title } } @@ -117,9 +117,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate count_LT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { count_LT: 3 } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_LT: 3 } } }) { title } } @@ -141,9 +141,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate count_GT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { count_GT: 2 } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_GT: 2 } } }) { title } } @@ -168,9 +168,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate node property SHORTEST", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { node: { title_SHORTEST_EQUAL: ${movieTitle3.length} } } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { node: { title_SHORTEST_EQUAL: ${movieTitle3.length} } } } }) { title } } @@ -195,9 +195,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate node property AVERAGE", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { node: { title_AVERAGE_EQUAL: ${genre2AverageTitleLength} } } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { node: { title_AVERAGE_EQUAL: ${genre2AverageTitleLength} } } } }) { title } } @@ -219,9 +219,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate edge property MAX_LT", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { edge: { intValue_MAX_LT: ${intValue3} } } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { edge: { intValue_MAX_LT: ${intValue3} } } } }) { title } } @@ -243,9 +243,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where moviesAggregate edge property MIN_EQUAL", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { edge: { intValue_MIN_EQUAL: ${intValue1} } } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { edge: { intValue_MIN_EQUAL: ${intValue1} } } } }) { title } } @@ -270,7 +270,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where genres_SOME", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_EQ: 2 } } }) { title @@ -294,7 +294,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where genres_NONE", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genres_NONE: { moviesAggregate: { count_EQ: 2 } } }) { title @@ -321,7 +321,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where genres_ALL", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genres_ALL: { moviesAggregate: { count_EQ: 2 } } }) { title @@ -342,7 +342,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find where genres_SINGLE", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genres_SINGLE: { moviesAggregate: { count_EQ: 2 } } }) { title @@ -366,7 +366,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should not find genres_ALL where NONE true", async () => { - const query = ` + const query = /* GraphQL */ ` { ${movieType.plural}(where: { genres_ALL: { moviesAggregate: { count_EQ: 0 } } }) { title @@ -383,9 +383,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find genres with multiple AND aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { AND: [{ moviesAggregate: { count_EQ: 2 } }, { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } }] } }) { + ${movieType.plural}(where: { genres_SOME: { AND: [{ moviesAggregate: { count_EQ: 2 } }, { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } }] } }) { title } } @@ -407,9 +407,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find genres with multiple OR aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { OR: [{ moviesAggregate: { count_EQ: 3 } }, { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } }] } }) { + ${movieType.plural}(where: { genres_SOME: { OR: [{ moviesAggregate: { count_EQ: 3 } }, { seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } }] } }) { title } } @@ -437,9 +437,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find genres with multiple implicit AND aggregates", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { count_EQ: 2 }, seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_EQ: 2 }, seriesAggregate: { node: { name_SHORTEST_EQUAL: ${seriesName1.length} } } } }) { title } } @@ -461,9 +461,9 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { }); test("should find genres with aggregation at the same level", async () => { - const query = ` + const query = /* GraphQL */ ` { - ${movieType.plural}(where: { genres: { moviesAggregate: { count_EQ: 3 } }, genresAggregate: { count_EQ: 1 } }) { + ${movieType.plural}(where: { genres_SOME: { moviesAggregate: { count_EQ: 3 } }, genresAggregate: { count_EQ: 1 } }) { title } } diff --git a/packages/graphql/tests/integration/issues/4056.int.test.ts b/packages/graphql/tests/integration/issues/4056.int.test.ts index e8e7f9ded9..cadc48d7a0 100644 --- a/packages/graphql/tests/integration/issues/4056.int.test.ts +++ b/packages/graphql/tests/integration/issues/4056.int.test.ts @@ -68,7 +68,7 @@ describe("https://github.com/neo4j/graphql/issues/4056", () => { @node @authorization( validate: [ - { where: { node: { admins: { userId_EQ: "$jwt.id" } } } } + { where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { @@ -90,7 +90,7 @@ describe("https://github.com/neo4j/graphql/issues/4056", () => { @node @authorization( validate: [ - { where: { node: {settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } + { where: { node: {settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { diff --git a/packages/graphql/tests/integration/issues/4118.int.test.ts b/packages/graphql/tests/integration/issues/4118.int.test.ts index a96830a155..0f3792544a 100644 --- a/packages/graphql/tests/integration/issues/4118.int.test.ts +++ b/packages/graphql/tests/integration/issues/4118.int.test.ts @@ -65,7 +65,7 @@ describe("https://github.com/neo4j/graphql/issues/4118", () => { @node @authorization( validate: [ - { where: { node: { admins: { userId_EQ: "$jwt.id" } } } } + { where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { @@ -78,7 +78,7 @@ describe("https://github.com/neo4j/graphql/issues/4118", () => { @node @authorization( validate: [ - { where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } + { where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { @@ -91,14 +91,14 @@ describe("https://github.com/neo4j/graphql/issues/4118", () => { type ${OpeningDay.name} @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { settings: ${Settings.name} @relationship(type: "VALID_OPENING_DAYS", direction: IN) id: ID! @id name: String } - type ${LOL.name} @authorization(validate: [{ where: { node: { host: { admins: { userId_EQ: "$jwt.id" } } } } }]) @node { + type ${LOL.name} @authorization(validate: [{ where: { node: { host: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { host: ${Tenant.name}! @relationship(type: "HOSTED_BY", direction: OUT) openingDays: [${OpeningDay.name}!]! @relationship(type: "HAS_OPENING_DAY", direction: OUT) } diff --git a/packages/graphql/tests/integration/issues/4170.int.test.ts b/packages/graphql/tests/integration/issues/4170.int.test.ts index 725682f43a..1357f83007 100644 --- a/packages/graphql/tests/integration/issues/4170.int.test.ts +++ b/packages/graphql/tests/integration/issues/4170.int.test.ts @@ -44,7 +44,7 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { OpeningDay = testHelper.createUniqueType("OpeningDay"); OpeningHoursInterval = testHelper.createUniqueType("OpeningHoursInterval"); - typeDefs = ` + typeDefs = /* GraphQL */ ` type JWT @jwt { id: String roles: [String] @@ -54,13 +54,13 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { adminAccess: [${Tenant.name}!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type ${Tenant.name} @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type ${Tenant.name} @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id settings: ${Settings.name}! @relationship(type: "HAS_SETTINGS", direction: OUT) admins: [${User.name}!]! @relationship(type: "ADMIN_IN", direction: IN) } - type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) @node { + type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id tenant: ${Tenant.name}! @relationship(type: "HAS_SETTINGS", direction: IN) openingDays: [${OpeningDay.name}!]! @relationship(type: "VALID_OPENING_DAYS", direction: OUT) @@ -70,7 +70,7 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { type ${OpeningDay.name} @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: ${Settings.name} @relationship(type: "VALID_GARAGES", direction: IN) @@ -81,7 +81,7 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { where: { node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } } ] ) { name: String diff --git a/packages/graphql/tests/integration/issues/4223.int.test.ts b/packages/graphql/tests/integration/issues/4223.int.test.ts index e118f24baf..ef08bbc6fc 100644 --- a/packages/graphql/tests/integration/issues/4223.int.test.ts +++ b/packages/graphql/tests/integration/issues/4223.int.test.ts @@ -54,13 +54,13 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { adminAccess: [${Tenant.name}!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type ${Tenant.name} @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type ${Tenant.name} @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id settings: ${Settings.name}! @relationship(type: "VEHICLECARD_OWNER", direction: IN) admins: [${User.name}!]! @relationship(type: "ADMIN_IN", direction: IN) } - type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) @node { + type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id openingDays: [${OpeningDay.name}!]! @relationship(type: "VALID_GARAGES", direction: OUT) myWorkspace: ${MyWorkspace.name}! @relationship(type: "HAS_WORKSPACE_SETTINGS", direction: OUT) @@ -70,7 +70,7 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { type ${OpeningDay.name} @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: ${Settings.name} @relationship(type: "VALID_GARAGES", direction: IN) @@ -81,7 +81,7 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { where: { node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } } ] ) { name: String @@ -95,7 +95,7 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { { where: { node: { - settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } + settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } diff --git a/packages/graphql/tests/integration/issues/4239.int.test.ts b/packages/graphql/tests/integration/issues/4239.int.test.ts index 1b25d302ad..463a69fd19 100644 --- a/packages/graphql/tests/integration/issues/4239.int.test.ts +++ b/packages/graphql/tests/integration/issues/4239.int.test.ts @@ -34,7 +34,7 @@ describe("https://github.com/neo4j/graphql/issues/4239", () => { type ${Movie.name} @node @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { when: [BEFORE], where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } } ] ) { title: String diff --git a/packages/graphql/tests/integration/issues/4429.int.test.ts b/packages/graphql/tests/integration/issues/4429.int.test.ts index a726be4a73..b0011d2f84 100644 --- a/packages/graphql/tests/integration/issues/4429.int.test.ts +++ b/packages/graphql/tests/integration/issues/4429.int.test.ts @@ -52,13 +52,13 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { adminAccess: [${Tenant.name}!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type ${Tenant.name} @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type ${Tenant.name} @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id settings: ${Settings.name}! @relationship(type: "VEHICLECARD_OWNER", direction: IN) admins: [${User.name}!]! @relationship(type: "ADMIN_IN", direction: IN) } - type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) @node { + type ${Settings.name} @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id openingDays: [${OpeningDay.name}!]! @relationship(type: "VALID_GARAGES", direction: OUT) tenant: ${Tenant.name}! @relationship(type: "VEHICLECARD_OWNER", direction: OUT) @@ -67,7 +67,7 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { type ${OpeningDay.name} @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: ${Settings.name} @relationship(type: "VALID_GARAGES", direction: IN) @@ -78,7 +78,7 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { where: { node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } } ] ) { name: String diff --git a/packages/graphql/tests/integration/issues/488.int.test.ts b/packages/graphql/tests/integration/issues/488.int.test.ts index 50f43c113e..592c6f0db0 100644 --- a/packages/graphql/tests/integration/issues/488.int.test.ts +++ b/packages/graphql/tests/integration/issues/488.int.test.ts @@ -89,7 +89,7 @@ describe("https://github.com/neo4j/graphql/issues/488", () => { const variableValues = { journalistsWhere: { id_EQ: journalistId, - keywordsConnection: { + keywordsConnection_SOME: { [testEmoji.name]: { node: { type_EQ: emojiType, diff --git a/packages/graphql/tests/integration/issues/5023.int.test.ts b/packages/graphql/tests/integration/issues/5023.int.test.ts index ae481032e4..ad53291dbd 100644 --- a/packages/graphql/tests/integration/issues/5023.int.test.ts +++ b/packages/graphql/tests/integration/issues/5023.int.test.ts @@ -37,7 +37,7 @@ describe("https://github.com/neo4j/graphql/issues/5013", () => { OpeningDay = testHelper.createUniqueType("OpeningDay"); OpeningHoursInterval = testHelper.createUniqueType("OpeningHoursInterval"); - const typeDefs = ` + const typeDefs = /* GraphQL */ ` type JWT @jwt { id: String } @@ -46,14 +46,14 @@ describe("https://github.com/neo4j/graphql/issues/5013", () => { adminAccess: [${Tenant}!]! @relationship(type: "ADMIN_IN", direction: OUT, aggregate: false) } - type ${Tenant} @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type ${Tenant} @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id admins: [${User}!]! @relationship(type: "ADMIN_IN", direction: IN, aggregate: false) settings: ${Settings}! @relationship(type: "HAS_SETTINGS", direction: OUT, aggregate: false) } type ${Settings} @node - @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { tenant: ${Tenant}! @relationship(type: "HAS_SETTINGS", direction: IN, aggregate: false) extendedOpeningHours: [${OpeningDay}!]! @relationship(type: "HAS_OPENING_HOURS", direction: OUT, aggregate: false) @@ -61,7 +61,7 @@ describe("https://github.com/neo4j/graphql/issues/5013", () => { type ${OpeningDay} @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { settings: ${Settings}! @relationship(type: "HAS_OPENING_HOURS", direction: IN, aggregate: false) date: Date @@ -72,7 +72,7 @@ describe("https://github.com/neo4j/graphql/issues/5013", () => { type ${OpeningHoursInterval} @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { where: { node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } } } ] ) { openingDay: ${OpeningDay} @relationship(type: "HAS_OPEN_INTERVALS", direction: IN, aggregate: false) diff --git a/packages/graphql/tests/integration/issues/505.int.test.ts b/packages/graphql/tests/integration/issues/505.int.test.ts index 5b83542c5e..b38b1a387f 100644 --- a/packages/graphql/tests/integration/issues/505.int.test.ts +++ b/packages/graphql/tests/integration/issues/505.int.test.ts @@ -50,7 +50,7 @@ describe("https://github.com/neo4j/graphql/issues/505", () => { filter: [ { operations: [READ] - where: { OR: [{ node: { members: { authId_EQ: "$jwt.sub" } } }, { node: { admins: { authId_EQ: "$jwt.sub" } } }] } + where: { OR: [{ node: { members_SOME: { authId_EQ: "$jwt.sub" } } }, { node: { admins_SOME: { authId_EQ: "$jwt.sub" } } }] } } ] ) @@ -78,8 +78,8 @@ describe("https://github.com/neo4j/graphql/issues/505", () => { { workspace: { OR: [ - { members: { authId_EQ: "$jwt.sub" } } - { admins: { authId_EQ: "$jwt.sub" } } + { members_SOME: { authId_EQ: "$jwt.sub" } } + { admins_SOME: { authId_EQ: "$jwt.sub" } } ] } } diff --git a/packages/graphql/tests/integration/issues/5080.int.test.ts b/packages/graphql/tests/integration/issues/5080.int.test.ts index fb423b8629..2ae64b77dc 100644 --- a/packages/graphql/tests/integration/issues/5080.int.test.ts +++ b/packages/graphql/tests/integration/issues/5080.int.test.ts @@ -43,7 +43,7 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { userId: String! @unique adminAccess: [${Tenant}!]! @relationship(type: "ADMIN_IN", direction: OUT, aggregate: false) } - type ${Tenant} @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type ${Tenant} @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id admins: [${User}!]! @relationship(type: "ADMIN_IN", direction: IN, aggregate: false) deletedCars: [${DeletedCar}!]! @relationship(type: "OWNED_BY", direction: IN, aggregate: false) @@ -57,7 +57,7 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { type ${Car} @node @mutation(operations: [UPDATE]) - @authorization(validate: [{ where: { node: { owner: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { owner: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { id: ID! @id owner: ${Tenant}! @relationship(type: "OWNED_BY", direction: OUT, aggregate: false) name: String! @@ -67,7 +67,7 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { type ${DeletedCar} @node @mutation(operations: [UPDATE]) - @authorization(validate: [{ where: { node: { owner: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { owner: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { id: ID! @id owner: ${Tenant}! @relationship(type: "OWNED_BY", direction: OUT, aggregate: false) name: String! diff --git a/packages/graphql/tests/integration/issues/582.int.test.ts b/packages/graphql/tests/integration/issues/582.int.test.ts index 172c6d6a61..cf7205d58a 100644 --- a/packages/graphql/tests/integration/issues/582.int.test.ts +++ b/packages/graphql/tests/integration/issues/582.int.test.ts @@ -66,10 +66,10 @@ describe("https://github.com/neo4j/graphql/issues/582", () => { variableValues: { where: { type_EQ: "Cat", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Dog", - parentsConnection: { + parentsConnection_SOME: { node: { type_EQ: "Bird", }, @@ -92,13 +92,13 @@ describe("https://github.com/neo4j/graphql/issues/582", () => { variableValues: { where: { type_EQ: "Cat", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Dog", - parentsConnection: { + parentsConnection_SOME: { node: { type_EQ: "Bird", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Fish", }, diff --git a/packages/graphql/tests/integration/issues/988.int.test.ts b/packages/graphql/tests/integration/issues/988.int.test.ts index ae38944fb7..9b964a6f54 100644 --- a/packages/graphql/tests/integration/issues/988.int.test.ts +++ b/packages/graphql/tests/integration/issues/988.int.test.ts @@ -103,7 +103,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { { OR: [ { - manufacturerConnection: { + manufacturerConnection_SOME: { edge: { current_EQ: true, }, @@ -113,7 +113,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { }, }, { - manufacturerConnection: { + manufacturerConnection_SOME: { edge: { current_EQ: false, }, @@ -127,7 +127,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { { OR: [ { - brandConnection: { + brandConnection_SOME: { edge: { current_EQ: true, }, diff --git a/packages/graphql/tests/integration/unions/unions-top-level.int.test.ts b/packages/graphql/tests/integration/unions/unions-top-level.int.test.ts index 8558dc3e40..cd70e7dbfb 100644 --- a/packages/graphql/tests/integration/unions/unions-top-level.int.test.ts +++ b/packages/graphql/tests/integration/unions/unions-top-level.int.test.ts @@ -145,7 +145,7 @@ describe("Top-level union query fields", () => { test("should read top-level simple query on union with filters on relationship field", async () => { const query = /* GraphQL */ ` query { - searches(where: {${MovieType.name}: {searchConnection: {${GenreType.name}: {node: { name_EQ: "Action"} }}}}) { + searches(where: {${MovieType.name}: {searchConnection_SOME: {${GenreType.name}: {node: { name_EQ: "Action"} }}}}) { ... on ${GenreType} { name } @@ -360,7 +360,7 @@ describe("add authorization", () => { query { searches(where: { ${MovieType.name}: { - searchConnection: { + searchConnection_SOME: { ${GenreType.name}: { node: { name_EQ: "Action"} } diff --git a/packages/graphql/tests/integration/update.int.test.ts b/packages/graphql/tests/integration/update.int.test.ts index 4187be325c..8c101ef88c 100644 --- a/packages/graphql/tests/integration/update.int.test.ts +++ b/packages/graphql/tests/integration/update.int.test.ts @@ -256,7 +256,7 @@ describe("update", () => { const query = ` mutation($updatedMovieId: ID, $actorName: String) { ${Movie.operations.update}( - where: { actorsConnection: { node: { name_EQ: $actorName } } }, + where: { actorsConnection_SOME: { node: { name_EQ: $actorName } } }, update: { id: $updatedMovieId } @@ -878,7 +878,7 @@ describe("update", () => { mutation($movieId: ID, $seriesId: ID) { ${Movie.operations.update}( where: { id_EQ: $movieId } - connect: { actors: [{ where: { node: { seriesConnection: { node: { id_EQ: $seriesId } } } } }] } + connect: { actors: [{ where: { node: { seriesConnection_SOME: { node: { id_EQ: $seriesId } } } } }] } ) { ${Movie.plural} { id diff --git a/packages/graphql/tests/schema/aggregations.test.ts b/packages/graphql/tests/schema/aggregations.test.ts index d85c38b601..dbb24a8d81 100644 --- a/packages/graphql/tests/schema/aggregations.test.ts +++ b/packages/graphql/tests/schema/aggregations.test.ts @@ -1159,9 +1159,7 @@ describe("Aggregations", () => { AND: [PostWhere!] NOT: PostWhere OR: [PostWhere!] - likes: UserWhere @deprecated(reason: \\"Use \`likes_SOME\` instead.\\") likesAggregate: PostLikesAggregateInput - likesConnection: PostLikesConnectionWhere @deprecated(reason: \\"Use \`likesConnection_SOME\` instead.\\") \\"\\"\\" Return Posts where all of the related PostLikesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/array-methods.test.ts b/packages/graphql/tests/schema/array-methods.test.ts index d1419248d3..57084fbd1c 100644 --- a/packages/graphql/tests/schema/array-methods.test.ts +++ b/packages/graphql/tests/schema/array-methods.test.ts @@ -277,9 +277,7 @@ describe("Arrays Methods", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -564,9 +562,7 @@ describe("Arrays Methods", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/authorization.test.ts b/packages/graphql/tests/schema/authorization.test.ts index a18ae3c6a1..82b2afd818 100644 --- a/packages/graphql/tests/schema/authorization.test.ts +++ b/packages/graphql/tests/schema/authorization.test.ts @@ -576,9 +576,7 @@ describe("Authorization", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - posts: UserWhere @deprecated(reason: \\"Use \`posts_SOME\` instead.\\") postsAggregate: UserPostsAggregateInput - postsConnection: UserPostsConnectionWhere @deprecated(reason: \\"Use \`postsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserPostsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/comments.test.ts b/packages/graphql/tests/schema/comments.test.ts index 21203e976c..b41ec83da8 100644 --- a/packages/graphql/tests/schema/comments.test.ts +++ b/packages/graphql/tests/schema/comments.test.ts @@ -569,9 +569,7 @@ describe("Comments", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -957,9 +955,7 @@ describe("Comments", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1636,8 +1632,6 @@ describe("Comments", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - search: SearchWhere @deprecated(reason: \\"Use \`search_SOME\` instead.\\") - searchConnection: MovieSearchConnectionWhere @deprecated(reason: \\"Use \`searchConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieSearchConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connect-or-create-id.test.ts b/packages/graphql/tests/schema/connect-or-create-id.test.ts index e254b8c04a..8dd11cbe30 100644 --- a/packages/graphql/tests/schema/connect-or-create-id.test.ts +++ b/packages/graphql/tests/schema/connect-or-create-id.test.ts @@ -251,9 +251,7 @@ describe("connect or create with id", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1110,9 +1108,7 @@ describe("connect or create with id", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - posts: PostWhere @deprecated(reason: \\"Use \`posts_SOME\` instead.\\") postsAggregate: UserPostsAggregateInput - postsConnection: UserPostsConnectionWhere @deprecated(reason: \\"Use \`postsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserPostsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connect-or-create-unions.test.ts b/packages/graphql/tests/schema/connect-or-create-unions.test.ts index df2ff14aa0..9177863dd3 100644 --- a/packages/graphql/tests/schema/connect-or-create-unions.test.ts +++ b/packages/graphql/tests/schema/connect-or-create-unions.test.ts @@ -326,8 +326,6 @@ describe("Connect Or Create", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connect-or-create.test.ts b/packages/graphql/tests/schema/connect-or-create.test.ts index 7e735b6da3..db7b151047 100644 --- a/packages/graphql/tests/schema/connect-or-create.test.ts +++ b/packages/graphql/tests/schema/connect-or-create.test.ts @@ -271,9 +271,7 @@ describe("Connect Or Create", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -852,9 +850,7 @@ describe("Connect Or Create", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connections/enums.test.ts b/packages/graphql/tests/schema/connections/enums.test.ts index 0dc1711068..491ebb5008 100644 --- a/packages/graphql/tests/schema/connections/enums.test.ts +++ b/packages/graphql/tests/schema/connections/enums.test.ts @@ -277,9 +277,7 @@ describe("Enums", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -538,9 +536,7 @@ describe("Enums", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connections/interfaces.test.ts b/packages/graphql/tests/schema/connections/interfaces.test.ts index d47ba18640..5aeeb5a4dd 100644 --- a/packages/graphql/tests/schema/connections/interfaces.test.ts +++ b/packages/graphql/tests/schema/connections/interfaces.test.ts @@ -414,9 +414,7 @@ describe("Connection with interfaces", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - director: CreatureWhere @deprecated(reason: \\"Use \`director_SOME\` instead.\\") directorAggregate: MovieDirectorAggregateInput - directorConnection: ProductionDirectorConnectionWhere @deprecated(reason: \\"Use \`directorConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionDirectorConnections match this filter \\"\\"\\" @@ -786,9 +784,7 @@ describe("Connection with interfaces", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - director: CreatureWhere @deprecated(reason: \\"Use \`director_SOME\` instead.\\") directorAggregate: ProductionDirectorAggregateInput - directorConnection: ProductionDirectorConnectionWhere @deprecated(reason: \\"Use \`directorConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionDirectorConnections match this filter \\"\\"\\" @@ -1010,9 +1006,7 @@ describe("Connection with interfaces", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - director: CreatureWhere @deprecated(reason: \\"Use \`director_SOME\` instead.\\") directorAggregate: SeriesDirectorAggregateInput - directorConnection: ProductionDirectorConnectionWhere @deprecated(reason: \\"Use \`directorConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionDirectorConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connections/sort.test.ts b/packages/graphql/tests/schema/connections/sort.test.ts index e14440ba97..a4c44c6fb2 100644 --- a/packages/graphql/tests/schema/connections/sort.test.ts +++ b/packages/graphql/tests/schema/connections/sort.test.ts @@ -226,9 +226,7 @@ describe("Sort", () => { property_EQ: String property_IN: [String!] property_STARTS_WITH: String - relatedTo: Node2Where @deprecated(reason: \\"Use \`relatedTo_SOME\` instead.\\") relatedToAggregate: Node1RelatedToAggregateInput - relatedToConnection: Node1RelatedToConnectionWhere @deprecated(reason: \\"Use \`relatedToConnection_SOME\` instead.\\") \\"\\"\\" Return Node1s where all of the related Node1RelatedToConnections match this filter \\"\\"\\" @@ -434,9 +432,7 @@ describe("Sort", () => { AND: [Node2Where!] NOT: Node2Where OR: [Node2Where!] - relatedTo: Node1Where @deprecated(reason: \\"Use \`relatedTo_SOME\` instead.\\") relatedToAggregate: Node2RelatedToAggregateInput - relatedToConnection: Node2RelatedToConnectionWhere @deprecated(reason: \\"Use \`relatedToConnection_SOME\` instead.\\") \\"\\"\\" Return Node2s where all of the related Node2RelatedToConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/connections/unions.test.ts b/packages/graphql/tests/schema/connections/unions.test.ts index bba48544b5..150f7d8405 100644 --- a/packages/graphql/tests/schema/connections/unions.test.ts +++ b/packages/graphql/tests/schema/connections/unions.test.ts @@ -274,8 +274,6 @@ describe("Unions", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - publications: PublicationWhere @deprecated(reason: \\"Use \`publications_SOME\` instead.\\") - publicationsConnection: AuthorPublicationsConnectionWhere @deprecated(reason: \\"Use \`publicationsConnection_SOME\` instead.\\") \\"\\"\\" Return Authors where all of the related AuthorPublicationsConnections match this filter \\"\\"\\" @@ -512,9 +510,7 @@ describe("Unions", () => { AND: [BookWhere!] NOT: BookWhere OR: [BookWhere!] - author: AuthorWhere @deprecated(reason: \\"Use \`author_SOME\` instead.\\") authorAggregate: BookAuthorAggregateInput - authorConnection: BookAuthorConnectionWhere @deprecated(reason: \\"Use \`authorConnection_SOME\` instead.\\") \\"\\"\\" Return Books where all of the related BookAuthorConnections match this filter \\"\\"\\" @@ -791,9 +787,7 @@ describe("Unions", () => { AND: [JournalWhere!] NOT: JournalWhere OR: [JournalWhere!] - author: AuthorWhere @deprecated(reason: \\"Use \`author_SOME\` instead.\\") authorAggregate: JournalAuthorAggregateInput - authorConnection: JournalAuthorConnectionWhere @deprecated(reason: \\"Use \`authorConnection_SOME\` instead.\\") \\"\\"\\" Return Journals where all of the related JournalAuthorConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directive-preserve.test.ts b/packages/graphql/tests/schema/directive-preserve.test.ts index 5abb782c4f..8e643d06cb 100644 --- a/packages/graphql/tests/schema/directive-preserve.test.ts +++ b/packages/graphql/tests/schema/directive-preserve.test.ts @@ -459,9 +459,7 @@ describe("Directive-preserve", () => { AND: [GenreWhere!] NOT: GenreWhere OR: [GenreWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: GenreMoviesAggregateInput - moviesConnection: GenreMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreMoviesConnections match this filter \\"\\"\\" @@ -711,9 +709,7 @@ describe("Directive-preserve", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - genres: GenreWhere @deprecated(reason: \\"Use \`genres_SOME\` instead.\\") genresAggregate: MovieGenresAggregateInput @deprecated(reason: \\"Do not use\\") - genresConnection: MovieGenresConnectionWhere @deprecated(reason: \\"Use \`genresConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieGenresConnections match this filter \\"\\"\\" @@ -1141,9 +1137,7 @@ describe("Directive-preserve", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1388,9 +1382,7 @@ describe("Directive-preserve", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput @deprecated(reason: \\"Do not use\\") - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -1684,9 +1676,7 @@ describe("Directive-preserve", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ProductionActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -1915,9 +1905,7 @@ describe("Directive-preserve", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -2309,9 +2297,7 @@ describe("Directive-preserve", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -2591,9 +2577,7 @@ describe("Directive-preserve", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput @deprecated(reason: \\"Do not use\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2951,9 +2935,7 @@ describe("Directive-preserve", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: SeriesActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related SeriesActorsConnections match this filter \\"\\"\\" @@ -3333,9 +3315,7 @@ describe("Directive-preserve", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -3615,9 +3595,7 @@ describe("Directive-preserve", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3975,9 +3953,7 @@ describe("Directive-preserve", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: SeriesActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related SeriesActorsConnections match this filter \\"\\"\\" @@ -4272,9 +4248,7 @@ describe("Directive-preserve", () => { AND: [BlogWhere!] NOT: BlogWhere OR: [BlogWhere!] - posts: PostWhere @deprecated(reason: \\"Use \`posts_SOME\` instead.\\") postsAggregate: BlogPostsAggregateInput - postsConnection: BlogPostsConnectionWhere @deprecated(reason: \\"Use \`postsConnection_SOME\` instead.\\") \\"\\"\\" Return Blogs where all of the related BlogPostsConnections match this filter \\"\\"\\" @@ -4681,8 +4655,6 @@ describe("Directive-preserve", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - content: ContentWhere @deprecated(reason: \\"Use \`content_SOME\` instead.\\") - contentConnection: UserContentConnectionWhere @deprecated(reason: \\"Use \`contentConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserContentConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/alias.test.ts b/packages/graphql/tests/schema/directives/alias.test.ts index 58d4f1c58d..2e8757d864 100644 --- a/packages/graphql/tests/schema/directives/alias.test.ts +++ b/packages/graphql/tests/schema/directives/alias.test.ts @@ -371,9 +371,7 @@ describe("Alias", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/filterable.test.ts b/packages/graphql/tests/schema/directives/filterable.test.ts index 30ea7820a8..bb7b2e791c 100644 --- a/packages/graphql/tests/schema/directives/filterable.test.ts +++ b/packages/graphql/tests/schema/directives/filterable.test.ts @@ -324,14 +324,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -374,14 +372,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -474,14 +470,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -528,14 +522,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -582,14 +574,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -636,14 +626,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -748,14 +736,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -806,14 +792,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -864,14 +848,12 @@ describe("@filterable directive", () => { const movieWhereFields = movieWhereType.getFields(); - const actorsConnection = movieWhereFields["actorsConnection"]; const actorsConnectionALL = movieWhereFields["actorsConnection_ALL"]; const actorsConnectionNONE = movieWhereFields["actorsConnection_NONE"]; const actorsConnectionSINGLE = movieWhereFields["actorsConnection_SINGLE"]; const actorsConnectionSOME = movieWhereFields["actorsConnection_SOME"]; const actorsConnectionFilters = [ - actorsConnection, actorsConnectionALL, actorsConnectionNONE, actorsConnectionSINGLE, @@ -1163,9 +1145,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1546,9 +1526,7 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1972,9 +1950,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -2355,9 +2331,7 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2771,9 +2745,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -3140,9 +3112,7 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3563,9 +3533,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -3867,8 +3835,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -4294,9 +4260,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -4677,9 +4641,7 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -5105,9 +5067,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -5890,9 +5850,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -6194,8 +6152,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -6622,9 +6578,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -6918,8 +6872,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -7431,9 +7383,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -7776,9 +7726,7 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -8290,9 +8238,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -8586,8 +8532,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -9107,9 +9051,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -9437,9 +9379,7 @@ describe("@filterable directive", () => { AND: [AppearanceWhere!] NOT: AppearanceWhere OR: [AppearanceWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: AppearanceMoviesAggregateInput - moviesConnection: AppearanceMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Appearances where all of the related AppearanceMoviesConnections match this filter \\"\\"\\" @@ -9815,8 +9755,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -10283,9 +10221,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -10613,9 +10549,7 @@ describe("@filterable directive", () => { AND: [AppearanceWhere!] NOT: AppearanceWhere OR: [AppearanceWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: AppearanceMoviesAggregateInput - moviesConnection: AppearanceMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Appearances where all of the related AppearanceMoviesConnections match this filter \\"\\"\\" @@ -10991,8 +10925,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -11459,9 +11391,7 @@ describe("@filterable directive", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -11789,9 +11719,7 @@ describe("@filterable directive", () => { AND: [AppearanceWhere!] NOT: AppearanceWhere OR: [AppearanceWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: AppearanceMoviesAggregateInput - moviesConnection: AppearanceMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Appearances where all of the related AppearanceMoviesConnections match this filter \\"\\"\\" @@ -12167,8 +12095,6 @@ describe("@filterable directive", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/populatedBy.test.ts b/packages/graphql/tests/schema/directives/populatedBy.test.ts index aa1fd18654..784ac8c3e3 100644 --- a/packages/graphql/tests/schema/directives/populatedBy.test.ts +++ b/packages/graphql/tests/schema/directives/populatedBy.test.ts @@ -972,9 +972,7 @@ describe("@populatedBy tests", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - genres: GenreWhere @deprecated(reason: \\"Use \`genres_SOME\` instead.\\") genresAggregate: MovieGenresAggregateInput - genresConnection: MovieGenresConnectionWhere @deprecated(reason: \\"Use \`genresConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieGenresConnections match this filter \\"\\"\\" @@ -1556,9 +1554,7 @@ describe("@populatedBy tests", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - genres: GenreWhere @deprecated(reason: \\"Use \`genres_SOME\` instead.\\") genresAggregate: MovieGenresAggregateInput - genresConnection: MovieGenresConnectionWhere @deprecated(reason: \\"Use \`genresConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieGenresConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/relationship-aggregate.test.ts b/packages/graphql/tests/schema/directives/relationship-aggregate.test.ts index da9da62fb0..1a1e603570 100644 --- a/packages/graphql/tests/schema/directives/relationship-aggregate.test.ts +++ b/packages/graphql/tests/schema/directives/relationship-aggregate.test.ts @@ -525,9 +525,7 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -958,9 +956,7 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1378,9 +1374,7 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1885,9 +1879,7 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2394,8 +2386,6 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: CastMemberWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2899,8 +2889,6 @@ describe("@relationship directive, aggregate argument", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: CastMemberWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/relationship-nested-operations.test.ts b/packages/graphql/tests/schema/directives/relationship-nested-operations.test.ts index c0a6a9e0e1..ba7b447588 100644 --- a/packages/graphql/tests/schema/directives/relationship-nested-operations.test.ts +++ b/packages/graphql/tests/schema/directives/relationship-nested-operations.test.ts @@ -206,9 +206,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -559,9 +557,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -916,9 +912,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1264,9 +1258,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1612,9 +1604,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1960,9 +1950,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2295,9 +2283,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2666,9 +2652,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3173,9 +3157,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3206,9 +3188,7 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") producersAggregate: MovieProducersAggregateInput - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" @@ -3655,9 +3635,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3688,9 +3666,7 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") producersAggregate: MovieProducersAggregateInput - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" @@ -3983,8 +3959,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -4404,8 +4378,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -4825,8 +4797,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -5231,8 +5201,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -5638,8 +5606,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -6045,8 +6011,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -6420,8 +6384,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -6854,8 +6816,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -7451,8 +7411,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -7483,8 +7441,6 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" @@ -7972,8 +7928,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -8004,8 +7958,6 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" @@ -8433,9 +8385,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -8932,9 +8882,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -9436,9 +9384,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -9930,9 +9876,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -10428,9 +10372,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -10922,9 +10864,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -11549,9 +11489,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -11582,9 +11520,7 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") producersAggregate: MovieProducersAggregateInput - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" @@ -12196,9 +12132,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -12229,9 +12163,7 @@ describe("Relationship nested operations", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - producers: PersonWhere @deprecated(reason: \\"Use \`producers_SOME\` instead.\\") producersAggregate: MovieProducersAggregateInput - producersConnection: MovieProducersConnectionWhere @deprecated(reason: \\"Use \`producersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieProducersConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/relationship-properties.test.ts b/packages/graphql/tests/schema/directives/relationship-properties.test.ts index 41e7dcfd2c..315365f098 100644 --- a/packages/graphql/tests/schema/directives/relationship-properties.test.ts +++ b/packages/graphql/tests/schema/directives/relationship-properties.test.ts @@ -329,9 +329,7 @@ describe("Relationship-properties", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -606,9 +604,7 @@ describe("Relationship-properties", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1036,9 +1032,7 @@ describe("Relationship-properties", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1325,9 +1319,7 @@ describe("Relationship-properties", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1711,9 +1703,7 @@ describe("Relationship-properties", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1989,9 +1979,7 @@ describe("Relationship-properties", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/relationship.test.ts b/packages/graphql/tests/schema/directives/relationship.test.ts index 15f3ece882..efeab555da 100644 --- a/packages/graphql/tests/schema/directives/relationship.test.ts +++ b/packages/graphql/tests/schema/directives/relationship.test.ts @@ -315,9 +315,7 @@ describe("Relationship", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -606,9 +604,7 @@ describe("Relationship", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -866,9 +862,7 @@ describe("Relationship", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/selectable.test.ts b/packages/graphql/tests/schema/directives/selectable.test.ts index b122c0fb4d..56160c8b2d 100644 --- a/packages/graphql/tests/schema/directives/selectable.test.ts +++ b/packages/graphql/tests/schema/directives/selectable.test.ts @@ -911,9 +911,7 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1343,9 +1341,7 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1750,8 +1746,6 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -2267,8 +2261,6 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -2791,9 +2783,7 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -3388,9 +3378,7 @@ describe("@selectable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/directives/settable.test.ts b/packages/graphql/tests/schema/directives/settable.test.ts index 0a2445a798..83a832af37 100644 --- a/packages/graphql/tests/schema/directives/settable.test.ts +++ b/packages/graphql/tests/schema/directives/settable.test.ts @@ -771,9 +771,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1190,9 +1188,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1615,9 +1611,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1875,9 +1869,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2217,9 +2209,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -2477,9 +2467,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2789,8 +2777,6 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -3275,8 +3261,6 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -3767,8 +3751,6 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -4031,9 +4013,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -4444,8 +4424,6 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -4708,9 +4686,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -5148,9 +5124,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -5732,9 +5706,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -6319,9 +6291,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -6548,9 +6518,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -6770,9 +6738,7 @@ describe("@settable", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ProductionActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -6996,9 +6962,7 @@ describe("@settable", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -7319,9 +7283,7 @@ describe("@settable", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -7548,9 +7510,7 @@ describe("@settable", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -7793,9 +7753,7 @@ describe("@settable", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ProductionActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -8019,9 +7977,7 @@ describe("@settable", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/federation.test.ts b/packages/graphql/tests/schema/federation.test.ts index d24f08d70d..c95136fc22 100644 --- a/packages/graphql/tests/schema/federation.test.ts +++ b/packages/graphql/tests/schema/federation.test.ts @@ -554,9 +554,7 @@ describe("Apollo Federation", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - posts: PostWhere @deprecated(reason: \\"Use \`posts_SOME\` instead.\\") postsAggregate: UserPostsAggregateInput - postsConnection: UserPostsConnectionWhere @deprecated(reason: \\"Use \`postsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserPostsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/inheritance.test.ts b/packages/graphql/tests/schema/inheritance.test.ts index cab6565fed..3627c8a600 100644 --- a/packages/graphql/tests/schema/inheritance.test.ts +++ b/packages/graphql/tests/schema/inheritance.test.ts @@ -225,9 +225,7 @@ describe("inheritance", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - friends: PersonWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: ActorFriendsAggregateInput - friendsConnection: PersonFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related PersonFriendsConnections match this filter \\"\\"\\" @@ -592,9 +590,7 @@ describe("inheritance", () => { AND: [PersonWhere!] NOT: PersonWhere OR: [PersonWhere!] - friends: PersonWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: PersonFriendsAggregateInput - friendsConnection: PersonFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonFriendsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/interface-relationships.test.ts b/packages/graphql/tests/schema/interface-relationships.test.ts index f613508108..4a053ef1b1 100644 --- a/packages/graphql/tests/schema/interface-relationships.test.ts +++ b/packages/graphql/tests/schema/interface-relationships.test.ts @@ -307,9 +307,7 @@ describe("Interface Relationships", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -970,9 +968,7 @@ describe("Interface Relationships", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1451,9 +1447,7 @@ describe("Interface Relationships", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -1750,9 +1744,7 @@ describe("Interface Relationships", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ProductionActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -2108,9 +2100,7 @@ describe("Interface Relationships", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -2142,9 +2132,7 @@ describe("Interface Relationships", () => { episodeCount_IN: [Int!] episodeCount_LT: Int episodeCount_LTE: Int - episodes: EpisodeWhere @deprecated(reason: \\"Use \`episodes_SOME\` instead.\\") episodesAggregate: SeriesEpisodesAggregateInput - episodesConnection: SeriesEpisodesConnectionWhere @deprecated(reason: \\"Use \`episodesConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related SeriesEpisodesConnections match this filter \\"\\"\\" @@ -2527,9 +2515,7 @@ describe("Interface Relationships", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ProductionWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -3008,9 +2994,7 @@ describe("Interface Relationships", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -3327,9 +3311,7 @@ describe("Interface Relationships", () => { AND: [ProductionWhere!] NOT: ProductionWhere OR: [ProductionWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ProductionActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Productions where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -3685,9 +3667,7 @@ describe("Interface Relationships", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ProductionActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ProductionActorsConnections match this filter \\"\\"\\" @@ -3719,9 +3699,7 @@ describe("Interface Relationships", () => { episodeCount_IN: [Int!] episodeCount_LT: Int episodeCount_LTE: Int - episodes: EpisodeWhere @deprecated(reason: \\"Use \`episodes_SOME\` instead.\\") episodesAggregate: SeriesEpisodesAggregateInput - episodesConnection: SeriesEpisodesConnectionWhere @deprecated(reason: \\"Use \`episodesConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related SeriesEpisodesConnections match this filter \\"\\"\\" @@ -4118,9 +4096,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -4604,9 +4580,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type1Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type1Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -4738,9 +4712,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface1: Interface1Where @deprecated(reason: \\"Use \`interface1_SOME\` instead.\\") interface1Aggregate: Type1Interface1AggregateInput - interface1Connection: Type1Interface1ConnectionWhere @deprecated(reason: \\"Use \`interface1Connection_SOME\` instead.\\") \\"\\"\\" Return Type1s where all of the related Type1Interface1Connections match this filter \\"\\"\\" @@ -4934,9 +4906,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type2Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type2Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -5398,9 +5368,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -5955,9 +5923,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type1Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type1Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -6089,9 +6055,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface1: Interface1Where @deprecated(reason: \\"Use \`interface1_SOME\` instead.\\") interface1Aggregate: Type1Interface1AggregateInput - interface1Connection: Type1Interface1ConnectionWhere @deprecated(reason: \\"Use \`interface1Connection_SOME\` instead.\\") \\"\\"\\" Return Type1s where all of the related Type1Interface1Connections match this filter \\"\\"\\" @@ -6294,9 +6258,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type2Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type2Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -6784,9 +6746,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -7279,9 +7239,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type1Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type1Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -7474,9 +7432,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface1: Interface1Where @deprecated(reason: \\"Use \`interface1_SOME\` instead.\\") interface1Aggregate: Type1Interface1AggregateInput - interface1Connection: Type1Interface1ConnectionWhere @deprecated(reason: \\"Use \`interface1Connection_SOME\` instead.\\") \\"\\"\\" Return Type1s where all of the related Type1Interface1Connections match this filter \\"\\"\\" @@ -7679,9 +7635,7 @@ describe("Interface Relationships", () => { field1_EQ: String field1_IN: [String!] field1_STARTS_WITH: String - interface2: Interface2Where @deprecated(reason: \\"Use \`interface2_SOME\` instead.\\") interface2Aggregate: Type2Interface1Interface2AggregateInput - interface2Connection: Interface1Interface2ConnectionWhere @deprecated(reason: \\"Use \`interface2Connection_SOME\` instead.\\") \\"\\"\\" Return Type2Interface1s where all of the related Interface1Interface2Connections match this filter \\"\\"\\" @@ -8839,9 +8793,7 @@ describe("Interface Relationships", () => { AND: [PostWhere!] NOT: PostWhere OR: [PostWhere!] - comments: CommentWhere @deprecated(reason: \\"Use \`comments_SOME\` instead.\\") commentsAggregate: PostCommentsAggregateInput - commentsConnection: PostCommentsConnectionWhere @deprecated(reason: \\"Use \`commentsConnection_SOME\` instead.\\") \\"\\"\\" Return Posts where all of the related PostCommentsConnections match this filter \\"\\"\\" @@ -9142,9 +9094,7 @@ describe("Interface Relationships", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - content: ContentWhere @deprecated(reason: \\"Use \`content_SOME\` instead.\\") contentAggregate: UserContentAggregateInput - contentConnection: UserContentConnectionWhere @deprecated(reason: \\"Use \`contentConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserContentConnections match this filter \\"\\"\\" @@ -9496,9 +9446,7 @@ describe("Interface Relationships", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ShowWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -9743,9 +9691,7 @@ describe("Interface Relationships", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ShowActorsConnections match this filter \\"\\"\\" @@ -10058,9 +10004,7 @@ describe("Interface Relationships", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ShowActorsConnections match this filter \\"\\"\\" @@ -10348,9 +10292,7 @@ describe("Interface Relationships", () => { AND: [ShowWhere!] NOT: ShowWhere OR: [ShowWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ShowActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Shows where all of the related ShowActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/interfaces.test.ts b/packages/graphql/tests/schema/interfaces.test.ts index f5fe032248..4494830014 100644 --- a/packages/graphql/tests/schema/interfaces.test.ts +++ b/packages/graphql/tests/schema/interfaces.test.ts @@ -297,9 +297,7 @@ describe("Interfaces", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: MovieNodeMoviesAggregateInput - moviesConnection: MovieNodeMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return MovieNodes where all of the related MovieNodeMoviesConnections match this filter \\"\\"\\" @@ -368,9 +366,7 @@ describe("Interfaces", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: MovieMoviesAggregateInput - moviesConnection: MovieNodeMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieNodeMoviesConnections match this filter \\"\\"\\" @@ -728,9 +724,7 @@ describe("Interfaces", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: MovieNodeMoviesAggregateInput - moviesConnection: MovieNodeMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return MovieNodes where all of the related MovieNodeMoviesConnections match this filter \\"\\"\\" @@ -799,9 +793,7 @@ describe("Interfaces", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: MovieMoviesAggregateInput - moviesConnection: MovieNodeMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieNodeMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/1182.test.ts b/packages/graphql/tests/schema/issues/1182.test.ts index 001bc42c35..8fc3f468fc 100644 --- a/packages/graphql/tests/schema/issues/1182.test.ts +++ b/packages/graphql/tests/schema/issues/1182.test.ts @@ -415,9 +415,7 @@ describe("https://github.com/neo4j/graphql/issues/1182", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/2187.test.ts b/packages/graphql/tests/schema/issues/2187.test.ts index 17277d7b88..63fa180d08 100644 --- a/packages/graphql/tests/schema/issues/2187.test.ts +++ b/packages/graphql/tests/schema/issues/2187.test.ts @@ -311,9 +311,7 @@ describe("https://github.com/neo4j/graphql/issues/2187", () => { AND: [GenreWhere!] NOT: GenreWhere OR: [GenreWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: GenreMoviesAggregateInput - moviesConnection: GenreMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreMoviesConnections match this filter \\"\\"\\" @@ -563,9 +561,7 @@ describe("https://github.com/neo4j/graphql/issues/2187", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - genres: GenreWhere @deprecated(reason: \\"Use \`genres_SOME\` instead.\\") genresAggregate: MovieGenresAggregateInput @deprecated(reason: \\"Do not use genre\\") - genresConnection: MovieGenresConnectionWhere @deprecated(reason: \\"Use \`genresConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieGenresConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/2377.test.ts b/packages/graphql/tests/schema/issues/2377.test.ts index f000caaa01..c53adb0951 100644 --- a/packages/graphql/tests/schema/issues/2377.test.ts +++ b/packages/graphql/tests/schema/issues/2377.test.ts @@ -517,9 +517,7 @@ describe("https://github.com/neo4j/graphql/issues/2377", () => { AND: [ResourceWhere!] NOT: ResourceWhere OR: [ResourceWhere!] - containedBy: ResourceWhere @deprecated(reason: \\"Use \`containedBy_SOME\` instead.\\") containedByAggregate: ResourceContainedByAggregateInput - containedByConnection: ResourceContainedByConnectionWhere @deprecated(reason: \\"Use \`containedByConnection_SOME\` instead.\\") \\"\\"\\" Return Resources where all of the related ResourceContainedByConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/2969.test.ts b/packages/graphql/tests/schema/issues/2969.test.ts index 5aa055c875..fb289d01bd 100644 --- a/packages/graphql/tests/schema/issues/2969.test.ts +++ b/packages/graphql/tests/schema/issues/2969.test.ts @@ -556,9 +556,7 @@ describe("https://github.com/neo4j/graphql/issues/2969", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - posts: PostWhere @deprecated(reason: \\"Use \`posts_SOME\` instead.\\") postsAggregate: UserPostsAggregateInput - postsConnection: UserPostsConnectionWhere @deprecated(reason: \\"Use \`postsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserPostsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/2993.test.ts b/packages/graphql/tests/schema/issues/2993.test.ts index bdfdd1af95..50282407b7 100644 --- a/packages/graphql/tests/schema/issues/2993.test.ts +++ b/packages/graphql/tests/schema/issues/2993.test.ts @@ -456,9 +456,7 @@ describe("https://github.com/neo4j/graphql/issues/2993", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - following: ProfileWhere @deprecated(reason: \\"Use \`following_SOME\` instead.\\") followingAggregate: UserFollowingAggregateInput - followingConnection: UserFollowingConnectionWhere @deprecated(reason: \\"Use \`followingConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserFollowingConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3428.test.ts b/packages/graphql/tests/schema/issues/3428.test.ts index 1ca8d1537c..5c1c222ad7 100644 --- a/packages/graphql/tests/schema/issues/3428.test.ts +++ b/packages/graphql/tests/schema/issues/3428.test.ts @@ -211,9 +211,7 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -514,8 +512,6 @@ describe("Relationship nested operations", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3439.test.ts b/packages/graphql/tests/schema/issues/3439.test.ts index 1e3291e3e0..f1e625cc7b 100644 --- a/packages/graphql/tests/schema/issues/3439.test.ts +++ b/packages/graphql/tests/schema/issues/3439.test.ts @@ -427,9 +427,7 @@ describe("https://github.com/neo4j/graphql/issues/3439", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -1746,9 +1744,7 @@ describe("https://github.com/neo4j/graphql/issues/3439", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -3019,9 +3015,7 @@ describe("https://github.com/neo4j/graphql/issues/3439", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -4628,9 +4622,7 @@ describe("https://github.com/neo4j/graphql/issues/3439", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -5722,9 +5714,7 @@ describe("https://github.com/neo4j/graphql/issues/3439", () => { number_IN: [Int!] number_LT: Int number_LTE: Int - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: RatingProductAggregateInput - productConnection: RatingProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Ratings where all of the related RatingProductConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3541.test.ts b/packages/graphql/tests/schema/issues/3541.test.ts index 3c75dd03e4..fcdd864b37 100644 --- a/packages/graphql/tests/schema/issues/3541.test.ts +++ b/packages/graphql/tests/schema/issues/3541.test.ts @@ -230,9 +230,7 @@ describe("Extending the schema in when using getSubgraphSchema", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -616,9 +614,7 @@ describe("Extending the schema in when using getSubgraphSchema", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3698.test.ts b/packages/graphql/tests/schema/issues/3698.test.ts index 43926c4e55..189eabfc4f 100644 --- a/packages/graphql/tests/schema/issues/3698.test.ts +++ b/packages/graphql/tests/schema/issues/3698.test.ts @@ -451,9 +451,7 @@ describe("https://github.com/neo4j/graphql/issues/3698", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -1426,9 +1424,7 @@ describe("https://github.com/neo4j/graphql/issues/3698", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" @@ -2516,9 +2512,7 @@ describe("https://github.com/neo4j/graphql/issues/3698", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - product: IProductWhere @deprecated(reason: \\"Use \`product_SOME\` instead.\\") productAggregate: GenreProductAggregateInput - productConnection: GenreProductConnectionWhere @deprecated(reason: \\"Use \`productConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreProductConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3816.test.ts b/packages/graphql/tests/schema/issues/3816.test.ts index 491150c93f..80deca986a 100644 --- a/packages/graphql/tests/schema/issues/3816.test.ts +++ b/packages/graphql/tests/schema/issues/3816.test.ts @@ -258,9 +258,7 @@ describe("https://github.com/neo4j/graphql/issues/3816", () => { AND: [GenreWhere!] NOT: GenreWhere OR: [GenreWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: GenreMoviesAggregateInput - moviesConnection: GenreMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreMoviesConnections match this filter \\"\\"\\" @@ -769,9 +767,7 @@ describe("https://github.com/neo4j/graphql/issues/3816", () => { AND: [GenreWhere!] NOT: GenreWhere OR: [GenreWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: GenreMoviesAggregateInput - moviesConnection: GenreMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Genres where all of the related GenreMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/3817.test.ts b/packages/graphql/tests/schema/issues/3817.test.ts index ec4e4bb67c..9c8b73142f 100644 --- a/packages/graphql/tests/schema/issues/3817.test.ts +++ b/packages/graphql/tests/schema/issues/3817.test.ts @@ -383,9 +383,7 @@ describe("3817", () => { AND: [PersonWhere!] NOT: PersonWhere OR: [PersonWhere!] - friends: PersonWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: PersonFriendsAggregateInput - friendsConnection: PersonFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonFriendsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/4615.test.ts b/packages/graphql/tests/schema/issues/4615.test.ts index 0ca3dc6426..b479486e25 100644 --- a/packages/graphql/tests/schema/issues/4615.test.ts +++ b/packages/graphql/tests/schema/issues/4615.test.ts @@ -322,9 +322,7 @@ describe("https://github.com/neo4j/graphql/issues/4615", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: ShowWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -582,9 +580,7 @@ describe("https://github.com/neo4j/graphql/issues/4615", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related ShowActorsConnections match this filter \\"\\"\\" @@ -846,9 +842,7 @@ describe("https://github.com/neo4j/graphql/issues/4615", () => { AND: [SeriesWhere!] NOT: SeriesWhere OR: [SeriesWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: SeriesActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Series where all of the related ShowActorsConnections match this filter \\"\\"\\" @@ -1116,9 +1110,7 @@ describe("https://github.com/neo4j/graphql/issues/4615", () => { AND: [ShowWhere!] NOT: ShowWhere OR: [ShowWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: ShowActorsAggregateInput - actorsConnection: ShowActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Shows where all of the related ShowActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/issues/5435.test.ts b/packages/graphql/tests/schema/issues/5435.test.ts deleted file mode 100644 index be784c8cb3..0000000000 --- a/packages/graphql/tests/schema/issues/5435.test.ts +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Copyright (c) "Neo4j" - * Neo4j Sweden AB [http://neo4j.com] - * - * This file is part of Neo4j. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { printSchemaWithDirectives } from "@graphql-tools/utils"; -import { gql } from "graphql-tag"; -import { lexicographicSortSchema } from "graphql/utilities"; -import { Neo4jGraphQL } from "../../../src"; - -describe("https://github.com/neo4j/graphql/issues/5435", () => { - test("filters should be generated for non-list relationships with array filters disabled", async () => { - const typeDefs = gql` - type User @node { - id: ID! @id - } - - type Post @authorization(validate: [{ where: { node: { author: { id: "$jwt.sub" } } } }]) @node { - title: String! - content: String! - author: User! @relationship(type: "AUTHORED", direction: IN) - } - `; - const neoSchema = new Neo4jGraphQL({ - typeDefs, - features: { - excludeDeprecatedFields: { - arrayFilters: true, - }, - authorization: { - key: "key", - }, - }, - }); - const printedSchema = printSchemaWithDirectives(lexicographicSortSchema(await neoSchema.getSchema())); - - expect(printedSchema).toMatchInlineSnapshot(` - "schema { - query: Query - mutation: Mutation - } - - \\"\\"\\" - Information about the number of nodes and relationships created during a create mutation - \\"\\"\\" - type CreateInfo { - nodesCreated: Int! - relationshipsCreated: Int! - } - - type CreatePostsMutationResponse { - info: CreateInfo! - posts: [Post!]! - } - - type CreateUsersMutationResponse { - info: CreateInfo! - users: [User!]! - } - - \\"\\"\\" - Information about the number of nodes and relationships deleted during a delete mutation - \\"\\"\\" - type DeleteInfo { - nodesDeleted: Int! - relationshipsDeleted: Int! - } - - type IDAggregateSelection { - longest: ID - shortest: ID - } - - type Mutation { - createPosts(input: [PostCreateInput!]!): CreatePostsMutationResponse! - createUsers(input: [UserCreateInput!]!): CreateUsersMutationResponse! - deletePosts(delete: PostDeleteInput, where: PostWhere): DeleteInfo! - deleteUsers(where: UserWhere): DeleteInfo! - updatePosts(connect: PostConnectInput @deprecated(reason: \\"Top level connect input argument in update is deprecated. Use the nested connect field in the relationship within the update argument\\"), create: PostRelationInput @deprecated(reason: \\"Top level create input argument in update is deprecated. Use the nested create field in the relationship within the update argument\\"), delete: PostDeleteInput @deprecated(reason: \\"Top level delete input argument in update is deprecated. Use the nested delete field in the relationship within the update argument\\"), disconnect: PostDisconnectInput @deprecated(reason: \\"Top level disconnect input argument in update is deprecated. Use the nested disconnect field in the relationship within the update argument\\"), update: PostUpdateInput, where: PostWhere): UpdatePostsMutationResponse! - updateUsers(update: UserUpdateInput, where: UserWhere): UpdateUsersMutationResponse! - } - - \\"\\"\\"Pagination information (Relay)\\"\\"\\" - type PageInfo { - endCursor: String - hasNextPage: Boolean! - hasPreviousPage: Boolean! - startCursor: String - } - - type Post { - author(directed: Boolean = true, limit: Int, offset: Int, options: UserOptions @deprecated(reason: \\"Query options argument is deprecated, please use pagination arguments like limit, offset and sort instead.\\"), sort: [UserSort!], where: UserWhere): User! - authorAggregate(directed: Boolean = true, where: UserWhere): PostUserAuthorAggregationSelection - authorConnection(after: String, directed: Boolean = true, first: Int, sort: [PostAuthorConnectionSort!], where: PostAuthorConnectionWhere): PostAuthorConnection! - content: String! - title: String! - } - - type PostAggregateSelection { - content: StringAggregateSelection! - count: Int! - title: StringAggregateSelection! - } - - input PostAuthorAggregateInput { - AND: [PostAuthorAggregateInput!] - NOT: PostAuthorAggregateInput - OR: [PostAuthorAggregateInput!] - count: Int @deprecated(reason: \\"Please use the explicit _EQ version\\") - count_EQ: Int - count_GT: Int - count_GTE: Int - count_LT: Int - count_LTE: Int - node: PostAuthorNodeAggregationWhereInput - } - - input PostAuthorConnectFieldInput { - \\"\\"\\" - Whether or not to overwrite any matching relationship with the new properties. - \\"\\"\\" - overwrite: Boolean! = true - where: UserConnectWhere - } - - type PostAuthorConnection { - edges: [PostAuthorRelationship!]! - pageInfo: PageInfo! - totalCount: Int! - } - - input PostAuthorConnectionSort { - node: UserSort - } - - input PostAuthorConnectionWhere { - AND: [PostAuthorConnectionWhere!] - NOT: PostAuthorConnectionWhere - OR: [PostAuthorConnectionWhere!] - node: UserWhere - } - - input PostAuthorCreateFieldInput { - node: UserCreateInput! - } - - input PostAuthorDeleteFieldInput { - where: PostAuthorConnectionWhere - } - - input PostAuthorDisconnectFieldInput { - where: PostAuthorConnectionWhere - } - - input PostAuthorFieldInput { - connect: PostAuthorConnectFieldInput - create: PostAuthorCreateFieldInput - } - - input PostAuthorNodeAggregationWhereInput { - AND: [PostAuthorNodeAggregationWhereInput!] - NOT: PostAuthorNodeAggregationWhereInput - OR: [PostAuthorNodeAggregationWhereInput!] - id_MAX_EQUAL: ID - id_MAX_GT: ID - id_MAX_GTE: ID - id_MAX_LT: ID - id_MAX_LTE: ID - id_MIN_EQUAL: ID - id_MIN_GT: ID - id_MIN_GTE: ID - id_MIN_LT: ID - id_MIN_LTE: ID - } - - type PostAuthorRelationship { - cursor: String! - node: User! - } - - input PostAuthorUpdateConnectionInput { - node: UserUpdateInput - } - - input PostAuthorUpdateFieldInput { - connect: PostAuthorConnectFieldInput - create: PostAuthorCreateFieldInput - delete: PostAuthorDeleteFieldInput - disconnect: PostAuthorDisconnectFieldInput - update: PostAuthorUpdateConnectionInput - where: PostAuthorConnectionWhere - } - - input PostConnectInput { - author: PostAuthorConnectFieldInput - } - - input PostCreateInput { - author: PostAuthorFieldInput - content: String! - title: String! - } - - input PostDeleteInput { - author: PostAuthorDeleteFieldInput - } - - input PostDisconnectInput { - author: PostAuthorDisconnectFieldInput - } - - type PostEdge { - cursor: String! - node: Post! - } - - input PostOptions { - limit: Int - offset: Int - \\"\\"\\" - Specify one or more PostSort objects to sort Posts by. The sorts will be applied in the order in which they are arranged in the array. - \\"\\"\\" - sort: [PostSort!] - } - - input PostRelationInput { - author: PostAuthorCreateFieldInput - } - - \\"\\"\\" - Fields to sort Posts by. The order in which sorts are applied is not guaranteed when specifying many fields in one PostSort object. - \\"\\"\\" - input PostSort { - content: SortDirection - title: SortDirection - } - - input PostUpdateInput { - author: PostAuthorUpdateFieldInput - content: String - title: String - } - - type PostUserAuthorAggregationSelection { - count: Int! - node: PostUserAuthorNodeAggregateSelection - } - - type PostUserAuthorNodeAggregateSelection { - id: IDAggregateSelection! - } - - input PostWhere { - AND: [PostWhere!] - NOT: PostWhere - OR: [PostWhere!] - author: UserWhere - authorAggregate: PostAuthorAggregateInput - authorConnection: PostAuthorConnectionWhere - content: String @deprecated(reason: \\"Please use the explicit _EQ version\\") - content_CONTAINS: String - content_ENDS_WITH: String - content_EQ: String - content_IN: [String!] - content_STARTS_WITH: String - title: String @deprecated(reason: \\"Please use the explicit _EQ version\\") - title_CONTAINS: String - title_ENDS_WITH: String - title_EQ: String - title_IN: [String!] - title_STARTS_WITH: String - } - - type PostsConnection { - edges: [PostEdge!]! - pageInfo: PageInfo! - totalCount: Int! - } - - type Query { - posts(limit: Int, offset: Int, options: PostOptions @deprecated(reason: \\"Query options argument is deprecated, please use pagination arguments like limit, offset and sort instead.\\"), sort: [PostSort!], where: PostWhere): [Post!]! - postsAggregate(where: PostWhere): PostAggregateSelection! - postsConnection(after: String, first: Int, sort: [PostSort!], where: PostWhere): PostsConnection! - users(limit: Int, offset: Int, options: UserOptions @deprecated(reason: \\"Query options argument is deprecated, please use pagination arguments like limit, offset and sort instead.\\"), sort: [UserSort!], where: UserWhere): [User!]! - usersAggregate(where: UserWhere): UserAggregateSelection! - usersConnection(after: String, first: Int, sort: [UserSort!], where: UserWhere): UsersConnection! - } - - \\"\\"\\"An enum for sorting in either ascending or descending order.\\"\\"\\" - enum SortDirection { - \\"\\"\\"Sort by field values in ascending order.\\"\\"\\" - ASC - \\"\\"\\"Sort by field values in descending order.\\"\\"\\" - DESC - } - - type StringAggregateSelection { - longest: String - shortest: String - } - - \\"\\"\\" - Information about the number of nodes and relationships created and deleted during an update mutation - \\"\\"\\" - type UpdateInfo { - nodesCreated: Int! - nodesDeleted: Int! - relationshipsCreated: Int! - relationshipsDeleted: Int! - } - - type UpdatePostsMutationResponse { - info: UpdateInfo! - posts: [Post!]! - } - - type UpdateUsersMutationResponse { - info: UpdateInfo! - users: [User!]! - } - - type User { - id: ID! - } - - type UserAggregateSelection { - count: Int! - id: IDAggregateSelection! - } - - input UserConnectWhere { - node: UserWhere! - } - - input UserCreateInput { - \\"\\"\\" - Appears because this input type would be empty otherwise because this type is composed of just generated and/or relationship properties. See https://neo4j.com/docs/graphql-manual/current/troubleshooting/faqs/ - \\"\\"\\" - _emptyInput: Boolean - } - - type UserEdge { - cursor: String! - node: User! - } - - input UserOptions { - limit: Int - offset: Int - \\"\\"\\" - Specify one or more UserSort objects to sort Users by. The sorts will be applied in the order in which they are arranged in the array. - \\"\\"\\" - sort: [UserSort!] - } - - \\"\\"\\" - Fields to sort Users by. The order in which sorts are applied is not guaranteed when specifying many fields in one UserSort object. - \\"\\"\\" - input UserSort { - id: SortDirection - } - - input UserUpdateInput { - \\"\\"\\" - Appears because this input type would be empty otherwise because this type is composed of just generated and/or relationship properties. See https://neo4j.com/docs/graphql-manual/current/troubleshooting/faqs/ - \\"\\"\\" - _emptyInput: Boolean - } - - input UserWhere { - AND: [UserWhere!] - NOT: UserWhere - OR: [UserWhere!] - id: ID @deprecated(reason: \\"Please use the explicit _EQ version\\") - id_CONTAINS: ID - id_ENDS_WITH: ID - id_EQ: ID - id_IN: [ID!] - id_STARTS_WITH: ID - } - - type UsersConnection { - edges: [UserEdge!]! - pageInfo: PageInfo! - totalCount: Int! - }" - `); - }); -}); diff --git a/packages/graphql/tests/schema/issues/872.test.ts b/packages/graphql/tests/schema/issues/872.test.ts index 679d5c0e03..9607c6804f 100644 --- a/packages/graphql/tests/schema/issues/872.test.ts +++ b/packages/graphql/tests/schema/issues/872.test.ts @@ -263,9 +263,7 @@ describe("https://github.com/neo4j/graphql/issues/872", () => { AND: [Actor2Where!] NOT: Actor2Where OR: [Actor2Where!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: Actor2MoviesAggregateInput - moviesConnection: Actor2MoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actor2s where all of the related Actor2MoviesConnections match this filter \\"\\"\\" @@ -504,9 +502,7 @@ describe("https://github.com/neo4j/graphql/issues/872", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/lowercase-type-names.test.ts b/packages/graphql/tests/schema/lowercase-type-names.test.ts index 31e0b8d223..4b55eb09e2 100644 --- a/packages/graphql/tests/schema/lowercase-type-names.test.ts +++ b/packages/graphql/tests/schema/lowercase-type-names.test.ts @@ -420,9 +420,7 @@ describe("lower case type names", () => { createdAt_IN: [DateTime] createdAt_LT: DateTime createdAt_LTE: DateTime - movies: movieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: actorMoviesAggregateInput - moviesConnection: actorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return actors where all of the related actorMoviesConnections match this filter \\"\\"\\" @@ -700,9 +698,7 @@ describe("lower case type names", () => { AND: [movieWhere!] NOT: movieWhere OR: [movieWhere!] - actors: actorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: movieActorsAggregateInput - actorsConnection: movieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return movies where all of the related movieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/math.test.ts b/packages/graphql/tests/schema/math.test.ts index 8fa44dfc57..7c7f866dab 100644 --- a/packages/graphql/tests/schema/math.test.ts +++ b/packages/graphql/tests/schema/math.test.ts @@ -756,9 +756,7 @@ describe("Algebraic", () => { AND: [DirectorWhere!] NOT: DirectorWhere OR: [DirectorWhere!] - directs: MovieWhere @deprecated(reason: \\"Use \`directs_SOME\` instead.\\") directsAggregate: DirectorDirectsAggregateInput - directsConnection: DirectorDirectsConnectionWhere @deprecated(reason: \\"Use \`directsConnection_SOME\` instead.\\") \\"\\"\\" Return Directors where all of the related DirectorDirectsConnections match this filter \\"\\"\\" @@ -1244,9 +1242,7 @@ describe("Algebraic", () => { viewers_IN: [Int!] viewers_LT: Int viewers_LTE: Int - workers: PersonWhere @deprecated(reason: \\"Use \`workers_SOME\` instead.\\") workersAggregate: MovieWorkersAggregateInput - workersConnection: MovieWorkersConnectionWhere @deprecated(reason: \\"Use \`workersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieWorkersConnections match this filter \\"\\"\\" @@ -1496,9 +1492,7 @@ describe("Algebraic", () => { name_EQ: String name_IN: [String!] name_STARTS_WITH: String - worksInProduction: ProductionWhere @deprecated(reason: \\"Use \`worksInProduction_SOME\` instead.\\") worksInProductionAggregate: PersonWorksInProductionAggregateInput - worksInProductionConnection: PersonWorksInProductionConnectionWhere @deprecated(reason: \\"Use \`worksInProductionConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonWorksInProductionConnections match this filter \\"\\"\\" @@ -2067,9 +2061,7 @@ describe("Algebraic", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: PersonWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2331,9 +2323,7 @@ describe("Algebraic", () => { AND: [PersonWhere!] NOT: PersonWhere OR: [PersonWhere!] - actedInMovies: MovieWhere @deprecated(reason: \\"Use \`actedInMovies_SOME\` instead.\\") actedInMoviesAggregate: PersonActedInMoviesAggregateInput - actedInMoviesConnection: PersonActedInMoviesConnectionWhere @deprecated(reason: \\"Use \`actedInMoviesConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonActedInMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/nested-aggregation-on-type.test.ts b/packages/graphql/tests/schema/nested-aggregation-on-type.test.ts index 4644b66c0d..ba13dd67e2 100644 --- a/packages/graphql/tests/schema/nested-aggregation-on-type.test.ts +++ b/packages/graphql/tests/schema/nested-aggregation-on-type.test.ts @@ -326,9 +326,7 @@ describe("nested aggregation on interface", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/pluralize-consistency.test.ts b/packages/graphql/tests/schema/pluralize-consistency.test.ts index 3a2180feb6..1dd1691758 100644 --- a/packages/graphql/tests/schema/pluralize-consistency.test.ts +++ b/packages/graphql/tests/schema/pluralize-consistency.test.ts @@ -366,9 +366,7 @@ describe("Pluralize consistency", () => { AND: [super_userWhere!] NOT: super_userWhere OR: [super_userWhere!] - my_friend: super_friendWhere @deprecated(reason: \\"Use \`my_friend_SOME\` instead.\\") my_friendAggregate: super_userMy_friendAggregateInput - my_friendConnection: super_userMy_friendConnectionWhere @deprecated(reason: \\"Use \`my_friendConnection_SOME\` instead.\\") \\"\\"\\" Return super_users where all of the related super_userMy_friendConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/query-direction.test.ts b/packages/graphql/tests/schema/query-direction.test.ts index 4df4bb0240..d49c04b534 100644 --- a/packages/graphql/tests/schema/query-direction.test.ts +++ b/packages/graphql/tests/schema/query-direction.test.ts @@ -297,9 +297,7 @@ describe("Query Direction", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - friends: UserWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: UserFriendsAggregateInput - friendsConnection: UserFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserFriendsConnections match this filter \\"\\"\\" @@ -613,9 +611,7 @@ describe("Query Direction", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - friends: UserWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: UserFriendsAggregateInput - friendsConnection: UserFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserFriendsConnections match this filter \\"\\"\\" @@ -929,9 +925,7 @@ describe("Query Direction", () => { AND: [UserWhere!] NOT: UserWhere OR: [UserWhere!] - friends: UserWhere @deprecated(reason: \\"Use \`friends_SOME\` instead.\\") friendsAggregate: UserFriendsAggregateInput - friendsConnection: UserFriendsConnectionWhere @deprecated(reason: \\"Use \`friendsConnection_SOME\` instead.\\") \\"\\"\\" Return Users where all of the related UserFriendsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/remove-deprecated/aggregations.test.ts b/packages/graphql/tests/schema/remove-deprecated/aggregations.test.ts index 73d8e369d2..c9dcb3ac1f 100644 --- a/packages/graphql/tests/schema/remove-deprecated/aggregations.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/aggregations.test.ts @@ -43,7 +43,6 @@ describe("Remove deprecated fields for aggregations", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, @@ -419,7 +418,6 @@ describe("Remove deprecated fields for aggregations", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, diff --git a/packages/graphql/tests/schema/remove-deprecated/array-methods.test.ts b/packages/graphql/tests/schema/remove-deprecated/array-methods.test.ts index 4ed1258836..c4896c53a3 100644 --- a/packages/graphql/tests/schema/remove-deprecated/array-methods.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/array-methods.test.ts @@ -45,7 +45,6 @@ describe("Arrays Methods", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, diff --git a/packages/graphql/tests/schema/remove-deprecated/comments.test.ts b/packages/graphql/tests/schema/remove-deprecated/comments.test.ts index 0fe579c0ad..f472b08a39 100644 --- a/packages/graphql/tests/schema/remove-deprecated/comments.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/comments.test.ts @@ -60,7 +60,6 @@ describe("Comments", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, @@ -299,7 +298,6 @@ describe("Comments", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, @@ -700,7 +698,6 @@ describe("Comments", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, @@ -1326,7 +1323,6 @@ describe("Comments", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, }, }, diff --git a/packages/graphql/tests/schema/remove-deprecated/implicit-equality.test.ts b/packages/graphql/tests/schema/remove-deprecated/implicit-equality.test.ts index 51dc4568f9..88bb5aae9c 100644 --- a/packages/graphql/tests/schema/remove-deprecated/implicit-equality.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/implicit-equality.test.ts @@ -42,7 +42,6 @@ describe("Implicit Equality filters", () => { features: { excludeDeprecatedFields: { implicitEqualFilters: false, - arrayFilters: true, aggregationFilters: true, deprecatedOptionsArgument: true, nestedUpdateOperationsFields: true, diff --git a/packages/graphql/tests/schema/remove-deprecated/options-argument.test.ts b/packages/graphql/tests/schema/remove-deprecated/options-argument.test.ts index ccdf02c8a0..489bc4414e 100644 --- a/packages/graphql/tests/schema/remove-deprecated/options-argument.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/options-argument.test.ts @@ -54,7 +54,6 @@ describe("Deprecated options argument", () => { typeDefs, features: { excludeDeprecatedFields: { - arrayFilters: true, aggregationFilters: true, deprecatedOptionsArgument: true, }, diff --git a/packages/graphql/tests/schema/remove-deprecated/update-operations.test.ts b/packages/graphql/tests/schema/remove-deprecated/update-operations.test.ts index bc7ac50fec..4cc121a9f1 100644 --- a/packages/graphql/tests/schema/remove-deprecated/update-operations.test.ts +++ b/packages/graphql/tests/schema/remove-deprecated/update-operations.test.ts @@ -310,9 +310,7 @@ describe("Nested operations in update", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/string-comparators.test.ts b/packages/graphql/tests/schema/string-comparators.test.ts index 9a1b37be42..e2ad09f0b1 100644 --- a/packages/graphql/tests/schema/string-comparators.test.ts +++ b/packages/graphql/tests/schema/string-comparators.test.ts @@ -791,9 +791,7 @@ describe("String Comparators", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - actedIn: MovieWhere @deprecated(reason: \\"Use \`actedIn_SOME\` instead.\\") actedInAggregate: ActorActedInAggregateInput - actedInConnection: ActorActedInConnectionWhere @deprecated(reason: \\"Use \`actedInConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorActedInConnections match this filter \\"\\"\\" @@ -1062,9 +1060,7 @@ describe("String Comparators", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/subscriptions.test.ts b/packages/graphql/tests/schema/subscriptions.test.ts index 1e7138e5aa..f9c8df1b18 100644 --- a/packages/graphql/tests/schema/subscriptions.test.ts +++ b/packages/graphql/tests/schema/subscriptions.test.ts @@ -517,9 +517,7 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -922,9 +920,7 @@ describe("Subscriptions", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1261,9 +1257,7 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1790,8 +1784,6 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -2117,9 +2109,7 @@ describe("Subscriptions", () => { AND: [PersonWhere!] NOT: PersonWhere OR: [PersonWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: PersonMoviesAggregateInput - moviesConnection: PersonMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonMoviesConnections match this filter \\"\\"\\" @@ -2425,9 +2415,7 @@ describe("Subscriptions", () => { AND: [StarWhere!] NOT: StarWhere OR: [StarWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: StarMoviesAggregateInput - moviesConnection: StarMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Stars where all of the related StarMoviesConnections match this filter \\"\\"\\" @@ -2866,9 +2854,7 @@ describe("Subscriptions", () => { AND: [ActorWhere!] NOT: ActorWhere OR: [ActorWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -3240,9 +3226,7 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -3744,9 +3728,7 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -4823,8 +4805,6 @@ describe("Subscriptions", () => { actorCount_IN: [Int] actorCount_LT: Int actorCount_LTE: Int - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -5150,9 +5130,7 @@ describe("Subscriptions", () => { AND: [PersonWhere!] NOT: PersonWhere OR: [PersonWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: PersonMoviesAggregateInput - moviesConnection: PersonMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonMoviesConnections match this filter \\"\\"\\" @@ -5401,9 +5379,7 @@ describe("Subscriptions", () => { AND: [StarWhere!] NOT: StarWhere OR: [StarWhere!] - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: StarMoviesAggregateInput - moviesConnection: StarMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Stars where all of the related StarMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/union-interface-relationship.test.ts b/packages/graphql/tests/schema/union-interface-relationship.test.ts index a4d5f007ff..620c60147e 100644 --- a/packages/graphql/tests/schema/union-interface-relationship.test.ts +++ b/packages/graphql/tests/schema/union-interface-relationship.test.ts @@ -407,9 +407,7 @@ describe("Union Interface Relationships", () => { id_IN: [Int] id_LT: Int id_LTE: Int - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: ActorMoviesAggregateInput - moviesConnection: ActorMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return Actors where all of the related ActorMoviesConnections match this filter \\"\\"\\" @@ -1206,9 +1204,7 @@ describe("Union Interface Relationships", () => { AND: [MovieWhere!] NOT: MovieWhere OR: [MovieWhere!] - actors: ActorWhere @deprecated(reason: \\"Use \`actors_SOME\` instead.\\") actorsAggregate: MovieActorsAggregateInput - actorsConnection: MovieActorsConnectionWhere @deprecated(reason: \\"Use \`actorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieActorsConnections match this filter \\"\\"\\" @@ -1233,8 +1229,6 @@ describe("Union Interface Relationships", () => { actors_SINGLE: ActorWhere \\"\\"\\"Return Movies where some of the related Actors match this filter\\"\\"\\" actors_SOME: ActorWhere - directors: DirectorWhere @deprecated(reason: \\"Use \`directors_SOME\` instead.\\") - directorsConnection: MovieDirectorsConnectionWhere @deprecated(reason: \\"Use \`directorsConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieDirectorsConnections match this filter \\"\\"\\" @@ -1266,9 +1260,7 @@ describe("Union Interface Relationships", () => { imdbId_IN: [Int] imdbId_LT: Int imdbId_LTE: Int - reviewers: ReviewerWhere @deprecated(reason: \\"Use \`reviewers_SOME\` instead.\\") reviewersAggregate: MovieReviewersAggregateInput - reviewersConnection: MovieReviewersConnectionWhere @deprecated(reason: \\"Use \`reviewersConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieReviewersConnections match this filter \\"\\"\\" @@ -1619,9 +1611,7 @@ describe("Union Interface Relationships", () => { id_IN: [Int] id_LT: Int id_LTE: Int - movies: MovieWhere @deprecated(reason: \\"Use \`movies_SOME\` instead.\\") moviesAggregate: PersonMoviesAggregateInput - moviesConnection: PersonMoviesConnectionWhere @deprecated(reason: \\"Use \`moviesConnection_SOME\` instead.\\") \\"\\"\\" Return People where all of the related PersonMoviesConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/schema/unions.test.ts b/packages/graphql/tests/schema/unions.test.ts index fca6c37959..7ef76d7ffa 100644 --- a/packages/graphql/tests/schema/unions.test.ts +++ b/packages/graphql/tests/schema/unions.test.ts @@ -341,8 +341,6 @@ describe("Unions", () => { id_EQ: ID id_IN: [ID] id_STARTS_WITH: ID - search: SearchWhere @deprecated(reason: \\"Use \`search_SOME\` instead.\\") - searchConnection: MovieSearchConnectionWhere @deprecated(reason: \\"Use \`searchConnection_SOME\` instead.\\") \\"\\"\\" Return Movies where all of the related MovieSearchConnections match this filter \\"\\"\\" diff --git a/packages/graphql/tests/tck/advanced-filtering.test.ts b/packages/graphql/tests/tck/advanced-filtering.test.ts index e87527b563..fccc7bc159 100644 --- a/packages/graphql/tests/tck/advanced-filtering.test.ts +++ b/packages/graphql/tests/tck/advanced-filtering.test.ts @@ -182,7 +182,6 @@ describe("Cypher Advanced Filtering", () => { `); }); - test("CONTAINS", async () => { const query = /* GraphQL */ ` { @@ -207,7 +206,6 @@ describe("Cypher Advanced Filtering", () => { `); }); - test("STARTS_WITH", async () => { const query = /* GraphQL */ ` { @@ -232,7 +230,6 @@ describe("Cypher Advanced Filtering", () => { `); }); - test("ENDS_WITH", async () => { const query = /* GraphQL */ ` { @@ -257,8 +254,6 @@ describe("Cypher Advanced Filtering", () => { `); }); - - test("LT", async () => { const query = /* GraphQL */ ` { @@ -571,7 +566,7 @@ describe("Cypher Advanced Filtering", () => { test("equality", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { name_EQ: "some genre" } }) { + movies(where: { genres_SOME: { name_EQ: "some genre" } }) { actorCount } } @@ -716,7 +711,7 @@ describe("Cypher Advanced Filtering", () => { test("Node and relationship properties equality", async () => { const query = /* GraphQL */ ` { - movies(where: { genresConnection: { node: { name_EQ: "some genre" } } }) { + movies(where: { genresConnection_SOME: { node: { name_EQ: "some genre" } } }) { actorCount } } diff --git a/packages/graphql/tests/tck/connections/filtering/interface-relationships.test.ts b/packages/graphql/tests/tck/connections/filtering/interface-relationships.test.ts index 4f6a5a92d6..872849d859 100644 --- a/packages/graphql/tests/tck/connections/filtering/interface-relationships.test.ts +++ b/packages/graphql/tests/tck/connections/filtering/interface-relationships.test.ts @@ -53,7 +53,7 @@ describe("interface relationships with aliased fields", () => { type ProtectedActor @node @authorization( - validate: [{ where: { node: { actedInConnection: { node: { title_EQ: "$jwt.title" } } } } }] + validate: [{ where: { node: { actedInConnection_SOME: { node: { title_EQ: "$jwt.title" } } } } }] ) { name: String! @alias(property: "dbName") actedIn: [Production!]! @relationship(type: "ACTED_IN", direction: OUT, properties: "ActedIn") diff --git a/packages/graphql/tests/tck/connections/filtering/node/relationship.test.ts b/packages/graphql/tests/tck/connections/filtering/node/relationship.test.ts index 04f7cb2a3e..7f69d45953 100644 --- a/packages/graphql/tests/tck/connections/filtering/node/relationship.test.ts +++ b/packages/graphql/tests/tck/connections/filtering/node/relationship.test.ts @@ -47,7 +47,7 @@ describe("Cypher -> Connections -> Filtering -> Node -> Relationship", () => { query { movies { title - actorsConnection(where: { node: { movies: { title_EQ: "Forrest Gump" } } }) { + actorsConnection(where: { node: { movies_SOME: { title_EQ: "Forrest Gump" } } }) { edges { node { name diff --git a/packages/graphql/tests/tck/connections/filtering/relationship/or.test.ts b/packages/graphql/tests/tck/connections/filtering/relationship/or.test.ts index 83cae84343..965a7a40d6 100644 --- a/packages/graphql/tests/tck/connections/filtering/relationship/or.test.ts +++ b/packages/graphql/tests/tck/connections/filtering/relationship/or.test.ts @@ -102,7 +102,11 @@ describe("Cypher -> Connections -> Filtering -> Relationship -> OR", () => { test("OR between edge and node", async () => { const query = /* GraphQL */ ` { - movies(where: { actorsConnection: { OR: [{ node: { name_EQ: "Harry" } }, { edge: { role_EQ: "Tom" } }] } }) { + movies( + where: { + actorsConnection_SOME: { OR: [{ node: { name_EQ: "Harry" } }, { edge: { role_EQ: "Tom" } }] } + } + ) { title } } diff --git a/packages/graphql/tests/tck/directives/node/node-label.test.ts b/packages/graphql/tests/tck/directives/node/node-label.test.ts index ea0a71cff0..fb7658e07c 100644 --- a/packages/graphql/tests/tck/directives/node/node-label.test.ts +++ b/packages/graphql/tests/tck/directives/node/node-label.test.ts @@ -378,7 +378,10 @@ describe("Label in Node directive", () => { test("Update disconnect in Movie with label film", async () => { const query = /* GraphQL */ ` mutation { - updateMovies(where: { id_EQ: "1" }, disconnect: { actors: [{ where: { node: { name_EQ: "Daniel" } } }] }) { + updateMovies( + where: { id_EQ: "1" } + disconnect: { actors: [{ where: { node: { name_EQ: "Daniel" } } }] } + ) { movies { id } @@ -459,7 +462,10 @@ describe("Label in Node directive", () => { test("Delete Movies and actors with custom labels", async () => { const query = /* GraphQL */ ` mutation { - deleteMovies(where: { id_EQ: 123 }, delete: { actors: { where: { node: { name_EQ: "Actor to delete" } } } }) { + deleteMovies( + where: { id_EQ: 123 } + delete: { actors: { where: { node: { name_EQ: "Actor to delete" } } } } + ) { nodesDeleted } } @@ -497,7 +503,7 @@ describe("Label in Node directive", () => { test("Admin Deletes Post", async () => { const query = /* GraphQL */ ` mutation { - deleteMovies(where: { actors: { name_EQ: "tom" } }) { + deleteMovies(where: { actors_SOME: { name_EQ: "tom" } }) { nodesDeleted } } diff --git a/packages/graphql/tests/tck/directives/vector/auth.test.ts b/packages/graphql/tests/tck/directives/vector/auth.test.ts index 7818fba782..2663090d8e 100644 --- a/packages/graphql/tests/tck/directives/vector/auth.test.ts +++ b/packages/graphql/tests/tck/directives/vector/auth.test.ts @@ -49,7 +49,7 @@ describe("Cypher -> vector -> Auth", () => { type Movie @node @vector(indexes: [{ indexName: "movie_index", embeddingProperty: "movieVector", queryName: "${queryName}" }]) - @authorization(filter: [{ where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization(filter: [{ where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }]) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -250,7 +250,7 @@ describe("Cypher -> vector -> Auth", () => { type Movie @node @vector(indexes: [{ indexName: "movie_index", embeddingProperty: "movieVector", queryName: "${queryName}" }]) - @authorization(validate: [{ when: [BEFORE], where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization(validate: [{ when: [BEFORE], where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }]) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -659,7 +659,7 @@ describe("Cypher -> vector -> Auth", () => { @vector(indexes: [{ indexName: "movie_index", embeddingProperty: "movieVector", queryName: "${queryName}" }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { when: [BEFORE], where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } } ] ) { title: String @@ -1075,7 +1075,7 @@ describe("Cypher -> vector -> Auth", () => { @vector(indexes: [{ indexName: "movie_index", embeddingProperty: "movieVector", queryName: "${queryName}" }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { edge: { year_EQ: 2020 } } } } } + { when: [BEFORE], where: { node: { directorConnection_SOME: { edge: { year_EQ: 2020 } } } } } ] ) { title: String diff --git a/packages/graphql/tests/tck/fulltext/auth.test.ts b/packages/graphql/tests/tck/fulltext/auth.test.ts index cb85ba5aae..d04be1422e 100644 --- a/packages/graphql/tests/tck/fulltext/auth.test.ts +++ b/packages/graphql/tests/tck/fulltext/auth.test.ts @@ -43,7 +43,7 @@ describe("Cypher -> fulltext -> Auth", () => { type Movie @node @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) - @authorization(filter: [{ where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization(filter: [{ where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }]) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -100,7 +100,9 @@ describe("Cypher -> fulltext -> Auth", () => { type Movie @node @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) - @authorization(validate: [{ when: [BEFORE], where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization( + validate: [{ when: [BEFORE], where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }] + ) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -218,7 +220,10 @@ describe("Cypher -> fulltext -> Auth", () => { @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } + } ] ) { title: String @@ -343,7 +348,10 @@ describe("Cypher -> fulltext -> Auth", () => { @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { edge: { year_EQ: 2020 } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { edge: { year_EQ: 2020 } } } } + } ] ) { title: String @@ -467,7 +475,7 @@ describe("Cypher -> fulltext -> Auth", () => { type Movie @node @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) - @authorization(filter: [{ where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization(filter: [{ where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }]) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -527,7 +535,9 @@ describe("Cypher -> fulltext -> Auth", () => { type Movie @node @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) - @authorization(validate: [{ when: [BEFORE], where: { node: { director: { id_EQ: "$jwt.sub" } } } }]) { + @authorization( + validate: [{ when: [BEFORE], where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }] + ) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -654,7 +664,10 @@ describe("Cypher -> fulltext -> Auth", () => { @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } + } ] ) { title: String @@ -788,7 +801,10 @@ describe("Cypher -> fulltext -> Auth", () => { @fulltext(indexes: [{ name: "MovieTitle", fields: ["title"] }]) @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { edge: { year_EQ: 2020 } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { edge: { year_EQ: 2020 } } } } + } ] ) { title: String diff --git a/packages/graphql/tests/tck/issues/1221.test.ts b/packages/graphql/tests/tck/issues/1221.test.ts index e100b18d71..f563874f0c 100644 --- a/packages/graphql/tests/tck/issues/1221.test.ts +++ b/packages/graphql/tests/tck/issues/1221.test.ts @@ -167,7 +167,7 @@ describe("https://github.com/neo4j/graphql/issues/1221", () => { current_EQ: true mainConnection_SINGLE: { node: { - architectureConnection: { + architectureConnection_SOME: { node: { nameDetailsConnection: { node: { fullName_EQ: "MHA" } } } } } diff --git a/packages/graphql/tests/tck/issues/1628.test.ts b/packages/graphql/tests/tck/issues/1628.test.ts index 7c0ad7537d..fbf86e23a2 100644 --- a/packages/graphql/tests/tck/issues/1628.test.ts +++ b/packages/graphql/tests/tck/issues/1628.test.ts @@ -47,7 +47,7 @@ describe("https://github.com/neo4j/graphql/issues/1628", () => { test("Filter generated by query doesn't utilise index", async () => { const query = /* GraphQL */ ` { - frbrWorks(limit: 10000, where: { dcterms__title: { value_CONTAINS: "0777" } }) { + frbrWorks(limit: 10000, where: { dcterms__title_SOME: { value_CONTAINS: "0777" } }) { iri dcterms__title(where: { value_CONTAINS: "0777" }) { value diff --git a/packages/graphql/tests/tck/issues/190.test.ts b/packages/graphql/tests/tck/issues/190.test.ts index 5401dede82..ea1b10d370 100644 --- a/packages/graphql/tests/tck/issues/190.test.ts +++ b/packages/graphql/tests/tck/issues/190.test.ts @@ -48,7 +48,7 @@ describe("#190", () => { test("Example 1", async () => { const query = /* GraphQL */ ` query { - users(where: { demographics: { type_EQ: "Gender", value_EQ: "Female" } }) { + users(where: { demographics_SOME: { type_EQ: "Gender", value_EQ: "Female" } }) { uid demographics { type @@ -88,7 +88,9 @@ describe("#190", () => { query { users( where: { - demographics: { OR: [{ type_EQ: "Gender", value_EQ: "Female" }, { type_EQ: "State" }, { type_EQ: "Age" }] } + demographics_SOME: { + OR: [{ type_EQ: "Gender", value_EQ: "Female" }, { type_EQ: "State" }, { type_EQ: "Age" }] + } } ) { uid diff --git a/packages/graphql/tests/tck/issues/2670.test.ts b/packages/graphql/tests/tck/issues/2670.test.ts index 993faad389..98c1443a25 100644 --- a/packages/graphql/tests/tck/issues/2670.test.ts +++ b/packages/graphql/tests/tck/issues/2670.test.ts @@ -54,7 +54,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { test("should find where moviesAggregate count equal", async () => { const query = /* GraphQL */ ` { - movies(where: { genresConnection: { node: { moviesAggregate: { count_EQ: 2 } } } }) { + movies(where: { genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 2 } } } }) { title } } @@ -94,7 +94,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { test("should find where moviesAggregate count_LT", async () => { const query = /* GraphQL */ ` { - movies(where: { genresConnection: { node: { moviesAggregate: { count_LT: 3 } } } }) { + movies(where: { genresConnection_SOME: { node: { moviesAggregate: { count_LT: 3 } } } }) { title } } @@ -134,7 +134,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { test("should find where moviesAggregate count_GT", async () => { const query = /* GraphQL */ ` { - movies(where: { genresConnection: { node: { moviesAggregate: { count_GT: 2 } } } }) { + movies(where: { genresConnection_SOME: { node: { moviesAggregate: { count_GT: 2 } } } }) { title } } @@ -175,7 +175,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { const query = /* GraphQL */ ` { movies( - where: { genresConnection: { node: { moviesAggregate: { node: { title_SHORTEST_EQUAL: 5 } } } } } + where: { + genresConnection_SOME: { node: { moviesAggregate: { node: { title_SHORTEST_EQUAL: 5 } } } } + } ) { title } @@ -217,7 +219,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { const query = /* GraphQL */ ` { movies( - where: { genresConnection: { node: { moviesAggregate: { node: { title_AVERAGE_EQUAL: 1 } } } } } + where: { + genresConnection_SOME: { node: { moviesAggregate: { node: { title_AVERAGE_EQUAL: 1 } } } } + } ) { title } @@ -255,7 +259,9 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { test("should find where moviesAggregate edge property MAX_LT", async () => { const query = /* GraphQL */ ` { - movies(where: { genresConnection: { node: { moviesAggregate: { edge: { intValue_MAX_LT: 983 } } } } }) { + movies( + where: { genresConnection_SOME: { node: { moviesAggregate: { edge: { intValue_MAX_LT: 983 } } } } } + ) { title } } @@ -296,7 +302,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { const query = /* GraphQL */ ` { movies( - where: { genresConnection: { node: { moviesAggregate: { edge: { intValue_MIN_EQUAL: 1 } } } } } + where: { genresConnection_SOME: { node: { moviesAggregate: { edge: { intValue_MIN_EQUAL: 1 } } } } } ) { title } @@ -515,7 +521,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { { movies( where: { - genresConnection: { + genresConnection_SOME: { AND: [ { node: { moviesAggregate: { count_EQ: 2 } } } { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: 1 } } } } @@ -573,7 +579,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { { movies( where: { - genresConnection: { + genresConnection_SOME: { OR: [ { node: { moviesAggregate: { count_EQ: 3 } } } { node: { seriesAggregate: { node: { name_SHORTEST_EQUAL: 983 } } } } @@ -631,7 +637,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { { movies( where: { - genresConnection: { + genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 2 } seriesAggregate: { node: { name_SHORTEST_EQUAL: 983 } } @@ -689,7 +695,7 @@ describe("https://github.com/neo4j/graphql/issues/2670", () => { { movies( where: { - genresConnection: { node: { moviesAggregate: { count_EQ: 3 } } } + genresConnection_SOME: { node: { moviesAggregate: { count_EQ: 3 } } } genresAggregate: { count_EQ: 1 } } ) { diff --git a/packages/graphql/tests/tck/issues/2708.test.ts b/packages/graphql/tests/tck/issues/2708.test.ts index 11cfb7ff37..957b9a9773 100644 --- a/packages/graphql/tests/tck/issues/2708.test.ts +++ b/packages/graphql/tests/tck/issues/2708.test.ts @@ -54,7 +54,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate count equal", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { count_EQ: 2 } } }) { + movies(where: { genres_SOME: { moviesAggregate: { count_EQ: 2 } } }) { title } } @@ -94,7 +94,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate count_LT", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { count_LT: 3 } } }) { + movies(where: { genres_SOME: { moviesAggregate: { count_LT: 3 } } }) { title } } @@ -134,7 +134,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate count_GT", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { count_GT: 2 } } }) { + movies(where: { genres_SOME: { moviesAggregate: { count_GT: 2 } } }) { title } } @@ -174,7 +174,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate node property SHORTEST", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { node: { title_SHORTEST_EQUAL: 1 } } } }) { + movies(where: { genres_SOME: { moviesAggregate: { node: { title_SHORTEST_EQUAL: 1 } } } }) { title } } @@ -214,7 +214,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate node property AVERAGE", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { node: { title_AVERAGE_EQUAL: 1 } } } }) { + movies(where: { genres_SOME: { moviesAggregate: { node: { title_AVERAGE_EQUAL: 1 } } } }) { title } } @@ -251,7 +251,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate edge property MAX_LT", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { edge: { intValue_MAX_LT: 1 } } } }) { + movies(where: { genres_SOME: { moviesAggregate: { edge: { intValue_MAX_LT: 1 } } } }) { title } } @@ -291,7 +291,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find where moviesAggregate edge property MIN_EQUAL", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { edge: { intValue_MIN_EQUAL: 1 } } } }) { + movies(where: { genres_SOME: { moviesAggregate: { edge: { intValue_MIN_EQUAL: 1 } } } }) { title } } @@ -565,7 +565,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { { movies( where: { - genres: { + genres_SOME: { AND: [ { moviesAggregate: { count_EQ: 2 } } { seriesAggregate: { node: { name_SHORTEST_EQUAL: 1 } } } @@ -623,7 +623,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { { movies( where: { - genres: { + genres_SOME: { OR: [ { moviesAggregate: { count_EQ: 3 } } { seriesAggregate: { node: { name_SHORTEST_EQUAL: 1 } } } @@ -681,7 +681,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { { movies( where: { - genres: { + genres_SOME: { moviesAggregate: { count_EQ: 2 } seriesAggregate: { node: { name_SHORTEST_EQUAL: 1 } } } @@ -735,7 +735,7 @@ describe("https://github.com/neo4j/graphql/issues/2708", () => { test("should find genres with aggregation at the same level", async () => { const query = /* GraphQL */ ` { - movies(where: { genres: { moviesAggregate: { count_EQ: 3 } }, genresAggregate: { count_EQ: 1 } }) { + movies(where: { genres_SOME: { moviesAggregate: { count_EQ: 3 } }, genresAggregate: { count_EQ: 1 } }) { title } } diff --git a/packages/graphql/tests/tck/issues/2925.test.ts b/packages/graphql/tests/tck/issues/2925.test.ts index d3ee60d0d6..5e232de057 100644 --- a/packages/graphql/tests/tck/issues/2925.test.ts +++ b/packages/graphql/tests/tck/issues/2925.test.ts @@ -101,7 +101,7 @@ describe("https://github.com/neo4j/graphql/issues/2925", () => { test("should query nested relationship", async () => { const query = /* GraphQL */ ` query Query { - groups(where: { hasGroupUser: { hasGroup: { name_IN: ["Group A"] } } }) { + groups(where: { hasGroupUser_SOME: { hasGroup: { name_IN: ["Group A"] } } }) { name } } @@ -130,7 +130,7 @@ describe("https://github.com/neo4j/graphql/issues/2925", () => { test("should query nested required relationship", async () => { const query = /* GraphQL */ ` query Query { - groups(where: { hasGroupUser: { hasRequiredGroup: { name_IN: ["Group A"] } } }) { + groups(where: { hasGroupUser_SOME: { hasRequiredGroup: { name_IN: ["Group A"] } } }) { name } } diff --git a/packages/graphql/tests/tck/issues/4118.test.ts b/packages/graphql/tests/tck/issues/4118.test.ts index 934725d3f6..01bfa29f5c 100644 --- a/packages/graphql/tests/tck/issues/4118.test.ts +++ b/packages/graphql/tests/tck/issues/4118.test.ts @@ -44,7 +44,7 @@ describe("https://github.com/neo4j/graphql/issues/2871", () => { @node @authorization( validate: [ - { where: { node: { admins: { userId_EQ: "$jwt.id" } } } } + { where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { @@ -57,7 +57,7 @@ describe("https://github.com/neo4j/graphql/issues/2871", () => { @node @authorization( validate: [ - { where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } + { where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } { where: { jwt: { roles_INCLUDES: "overlord" } } } ] ) { @@ -70,14 +70,16 @@ describe("https://github.com/neo4j/graphql/issues/2871", () => { type OpeningDay @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { settings: Settings @relationship(type: "VALID_OPENING_DAYS", direction: IN) id: ID! @id name: String } - type LOL @authorization(validate: [{ where: { node: { host: { admins: { userId_EQ: "$jwt.id" } } } } }]) @node { + type LOL + @authorization(validate: [{ where: { node: { host: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) + @node { host: Tenant! @relationship(type: "HOSTED_BY", direction: OUT) openingDays: [OpeningDay!]! @relationship(type: "HAS_OPENING_DAY", direction: OUT) } diff --git a/packages/graphql/tests/tck/issues/4170.test.ts b/packages/graphql/tests/tck/issues/4170.test.ts index c3c2a365e6..1681a647ff 100644 --- a/packages/graphql/tests/tck/issues/4170.test.ts +++ b/packages/graphql/tests/tck/issues/4170.test.ts @@ -33,14 +33,14 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { adminAccess: [Tenant!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type Tenant @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type Tenant @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id settings: Settings! @relationship(type: "HAS_SETTINGS", direction: OUT) admins: [User!]! @relationship(type: "ADMIN_IN", direction: IN) } type Settings - @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) + @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id tenant: Tenant! @relationship(type: "HAS_SETTINGS", direction: IN) @@ -51,7 +51,7 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { type OpeningDay @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: Settings @relationship(type: "VALID_GARAGES", direction: IN) @@ -62,7 +62,11 @@ describe("https://github.com/neo4j/graphql/issues/4170", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { + where: { + node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } + } + } ] ) { name: String diff --git a/packages/graphql/tests/tck/issues/4223.test.ts b/packages/graphql/tests/tck/issues/4223.test.ts index d019fdd779..db8e824bab 100644 --- a/packages/graphql/tests/tck/issues/4223.test.ts +++ b/packages/graphql/tests/tck/issues/4223.test.ts @@ -33,14 +33,14 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { adminAccess: [Tenant!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type Tenant @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type Tenant @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id settings: Settings! @relationship(type: "VEHICLECARD_OWNER", direction: IN) admins: [User!]! @relationship(type: "ADMIN_IN", direction: IN) } type Settings - @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) + @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id tenant: Tenant! @relationship(type: "HAS_SETTINGS", direction: IN) @@ -52,7 +52,7 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { type OpeningDay @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: Settings @relationship(type: "VALID_GARAGES", direction: IN) @@ -63,7 +63,11 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { + where: { + node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } + } + } ] ) { name: String @@ -74,7 +78,7 @@ describe("https://github.com/neo4j/graphql/issues/4223", () => { type MyWorkspace @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { settings: Settings! @relationship(type: "HAS_WORKSPACE_SETTINGS", direction: IN) workspace: String diff --git a/packages/graphql/tests/tck/issues/4239.test.ts b/packages/graphql/tests/tck/issues/4239.test.ts index 627d0deb18..8102283c04 100644 --- a/packages/graphql/tests/tck/issues/4239.test.ts +++ b/packages/graphql/tests/tck/issues/4239.test.ts @@ -43,7 +43,10 @@ describe("https://github.com/neo4j/graphql/issues/4239", () => { @node @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } + } ] ) { title: String @@ -98,7 +101,9 @@ describe("https://github.com/neo4j/graphql/issues/4239", () => { const typeDefs = /* GraphQL */ ` type Movie @node - @authorization(validate: [{ when: [BEFORE], where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }]) { + @authorization( + validate: [{ when: [BEFORE], where: { node: { director_SOME: { id_EQ: "$jwt.sub" } } } }] + ) { title: String director: [Person!]! @relationship(type: "DIRECTED", direction: IN) } @@ -153,7 +158,10 @@ describe("https://github.com/neo4j/graphql/issues/4239", () => { @node @authorization( validate: [ - { when: [BEFORE], where: { node: { directorConnection: { node: { id_EQ: "$jwt.sub" } } } } } + { + when: [BEFORE] + where: { node: { directorConnection_SOME: { node: { id_EQ: "$jwt.sub" } } } } + } ] ) { title: String diff --git a/packages/graphql/tests/tck/issues/4429.test.ts b/packages/graphql/tests/tck/issues/4429.test.ts index a6eed75a57..73d498d7cb 100644 --- a/packages/graphql/tests/tck/issues/4429.test.ts +++ b/packages/graphql/tests/tck/issues/4429.test.ts @@ -33,14 +33,14 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { adminAccess: [Tenant!]! @relationship(type: "ADMIN_IN", direction: OUT) } - type Tenant @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type Tenant @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) @node { id: ID! @id admins: [User!]! @relationship(type: "ADMIN_IN", direction: IN) settings: Settings @relationship(type: "VEHICLECARD_OWNER", direction: IN) } type Settings - @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) + @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) @node { id: ID! @id openingDays: [OpeningDay!]! @relationship(type: "VALID_GARAGES", direction: OUT) @@ -50,7 +50,7 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { type OpeningDay @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { id: ID! @id settings: Settings @relationship(type: "VALID_GARAGES", direction: IN) @@ -60,7 +60,11 @@ describe("https://github.com/neo4j/graphql/issues/4429", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { + where: { + node: { openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } + } + } ] ) { name: String diff --git a/packages/graphql/tests/tck/issues/488.test.ts b/packages/graphql/tests/tck/issues/488.test.ts index 2861c68de7..dc87541b8f 100644 --- a/packages/graphql/tests/tck/issues/488.test.ts +++ b/packages/graphql/tests/tck/issues/488.test.ts @@ -57,7 +57,7 @@ describe("https://github.com/neo4j/graphql/issues/488", () => { test("Should replicate issue and return correct cypher", async () => { const query = /* GraphQL */ ` query { - journalists(where: { keywordsConnection: { Emoji: { node: { type_EQ: "Smile" } } } }) { + journalists(where: { keywordsConnection_SOME: { Emoji: { node: { type_EQ: "Smile" } } } }) { name keywords { ... on Emoji { diff --git a/packages/graphql/tests/tck/issues/5023.test.ts b/packages/graphql/tests/tck/issues/5023.test.ts index 2dd2a1c180..eb1b536a75 100644 --- a/packages/graphql/tests/tck/issues/5023.test.ts +++ b/packages/graphql/tests/tck/issues/5023.test.ts @@ -26,7 +26,7 @@ describe("https://github.com/neo4j/graphql/issues/5023", () => { let neoSchema: Neo4jGraphQL; beforeAll(() => { - typeDefs = ` + typeDefs = /* GraphQL */ ` type JWT @jwt { id: String } @@ -35,7 +35,9 @@ describe("https://github.com/neo4j/graphql/issues/5023", () => { adminAccess: [Tenant!]! @relationship(type: "ADMIN_IN", direction: OUT, aggregate: false) } - type Tenant @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type Tenant + @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) + @node { id: ID! @id admins: [User!]! @relationship(type: "ADMIN_IN", direction: IN, aggregate: false) settings: Settings! @relationship(type: "HAS_SETTINGS", direction: OUT, aggregate: false) @@ -43,7 +45,7 @@ describe("https://github.com/neo4j/graphql/issues/5023", () => { type Settings @node - @authorization(validate: [{ where: { node: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { tenant: Tenant! @relationship(type: "HAS_SETTINGS", direction: IN, aggregate: false) extendedOpeningHours: [OpeningDay!]! @relationship(type: "HAS_OPENING_HOURS", direction: OUT, aggregate: false) @@ -52,7 +54,7 @@ describe("https://github.com/neo4j/graphql/issues/5023", () => { type OpeningDay @node @authorization( - validate: [{ where: { node: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } }] + validate: [{ where: { node: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } } }] ) { settings: Settings! @relationship(type: "HAS_OPENING_HOURS", direction: IN, aggregate: false) date: Date @@ -64,7 +66,13 @@ describe("https://github.com/neo4j/graphql/issues/5023", () => { @node @authorization( validate: [ - { where: { node: { openingDay: { settings: { tenant: { admins: { userId_EQ: "$jwt.id" } } } } } } } + { + where: { + node: { + openingDay: { settings: { tenant: { admins_SOME: { userId_EQ: "$jwt.id" } } } } + } + } + } ] ) { openingDay: OpeningDay @relationship(type: "HAS_OPEN_INTERVALS", direction: IN, aggregate: false) diff --git a/packages/graphql/tests/tck/issues/505.test.ts b/packages/graphql/tests/tck/issues/505.test.ts index 3c567760c9..48c199cd94 100644 --- a/packages/graphql/tests/tck/issues/505.test.ts +++ b/packages/graphql/tests/tck/issues/505.test.ts @@ -42,8 +42,8 @@ describe("https://github.com/neo4j/graphql/issues/505", () => { operations: [READ] where: { OR: [ - { node: { members: { authId_EQ: "$jwt.sub" } } } - { node: { admins: { authId_EQ: "$jwt.sub" } } } + { node: { members_SOME: { authId_EQ: "$jwt.sub" } } } + { node: { admins_SOME: { authId_EQ: "$jwt.sub" } } } ] } } @@ -73,8 +73,8 @@ describe("https://github.com/neo4j/graphql/issues/505", () => { { workspace: { OR: [ - { members: { authId_EQ: "$jwt.sub" } } - { admins: { authId_EQ: "$jwt.sub" } } + { members_SOME: { authId_EQ: "$jwt.sub" } } + { admins_SOME: { authId_EQ: "$jwt.sub" } } ] } } diff --git a/packages/graphql/tests/tck/issues/5080.test.ts b/packages/graphql/tests/tck/issues/5080.test.ts index 3c7c9eadf6..5028cb872b 100644 --- a/packages/graphql/tests/tck/issues/5080.test.ts +++ b/packages/graphql/tests/tck/issues/5080.test.ts @@ -36,7 +36,9 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { adminAccess: [Tenant!]! @relationship(type: "ADMIN_IN", direction: OUT, aggregate: false) } - type Tenant @authorization(validate: [{ where: { node: { admins: { userId_EQ: "$jwt.id" } } } }]) @node { + type Tenant + @authorization(validate: [{ where: { node: { admins_SOME: { userId_EQ: "$jwt.id" } } } }]) + @node { id: ID! @id admins: [User!]! @relationship(type: "ADMIN_IN", direction: IN, aggregate: false) deletedCars: [DeletedCar!]! @relationship(type: "OWNED_BY", direction: IN, aggregate: false) @@ -65,7 +67,7 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { type Car @node @mutation(operations: [UPDATE]) - @authorization(validate: [{ where: { node: { owner: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { owner: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { id: ID! @id owner: Tenant! @relationship(type: "OWNED_BY", direction: OUT, aggregate: false) name: String! @@ -76,7 +78,7 @@ describe("https://github.com/neo4j/graphql/issues/5080", () => { type DeletedCar @node @mutation(operations: [UPDATE]) - @authorization(validate: [{ where: { node: { owner: { admins: { userId_EQ: "$jwt.id" } } } } }]) { + @authorization(validate: [{ where: { node: { owner: { admins_SOME: { userId_EQ: "$jwt.id" } } } } }]) { id: ID! @id owner: Tenant! @relationship(type: "OWNED_BY", direction: OUT, aggregate: false) name: String! diff --git a/packages/graphql/tests/tck/issues/582.test.ts b/packages/graphql/tests/tck/issues/582.test.ts index 4c7ce02144..bc867b4801 100644 --- a/packages/graphql/tests/tck/issues/582.test.ts +++ b/packages/graphql/tests/tck/issues/582.test.ts @@ -55,10 +55,10 @@ describe("#582", () => { variableValues: { where: { type_EQ: "Cat", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Dog", - parentsConnection: { + parentsConnection_SOME: { node: { type_EQ: "Bird", }, @@ -103,13 +103,13 @@ describe("#582", () => { variableValues: { where: { type_EQ: "Cat", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Dog", - parentsConnection: { + parentsConnection_SOME: { node: { type_EQ: "Bird", - childrenConnection: { + childrenConnection_SOME: { node: { type_EQ: "Fish", }, diff --git a/packages/graphql/tests/tck/issues/988.test.ts b/packages/graphql/tests/tck/issues/988.test.ts index 3c321a7491..6cb800a11c 100644 --- a/packages/graphql/tests/tck/issues/988.test.ts +++ b/packages/graphql/tests/tck/issues/988.test.ts @@ -92,7 +92,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { { OR: [ { - manufacturerConnection: { + manufacturerConnection_SOME: { edge: { current_EQ: true, }, @@ -102,7 +102,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { }, }, { - manufacturerConnection: { + manufacturerConnection_SOME: { edge: { current_EQ: false, }, @@ -116,7 +116,7 @@ describe("https://github.com/neo4j/graphql/issues/988", () => { { OR: [ { - brandConnection: { + brandConnection_SOME: { edge: { current_EQ: true, }, diff --git a/packages/graphql/tests/tck/issues/context-variable-not-always-resolved-on-cypher-queries.test.ts b/packages/graphql/tests/tck/issues/context-variable-not-always-resolved-on-cypher-queries.test.ts index c2ca1260aa..3234041d13 100644 --- a/packages/graphql/tests/tck/issues/context-variable-not-always-resolved-on-cypher-queries.test.ts +++ b/packages/graphql/tests/tck/issues/context-variable-not-always-resolved-on-cypher-queries.test.ts @@ -71,7 +71,9 @@ describe("context-variable-not-always-resolved-on-cypher-queries", () => { const query = /* GraphQL */ ` query { exprs( - where: { realizationOf: { hasResourceType: { iri_EQ: "http://data.somesite.com/crown/test-id" } } } + where: { + realizationOf: { hasResourceType_SOME: { iri_EQ: "http://data.somesite.com/crown/test-id" } } + } limit: 1 ) { iri @@ -114,7 +116,9 @@ describe("context-variable-not-always-resolved-on-cypher-queries", () => { const query = /* GraphQL */ ` query { exprs( - where: { realizationOf: { hasResourceType: { iri_EQ: "http://data.somesite.com/crown/test-id" } } } + where: { + realizationOf: { hasResourceType_SOME: { iri_EQ: "http://data.somesite.com/crown/test-id" } } + } limit: 1 ) { iri @@ -178,7 +182,9 @@ describe("context-variable-not-always-resolved-on-cypher-queries", () => { const query = /* GraphQL */ ` query { exprs( - where: { realizationOf: { hasResourceType: { iri_EQ: "http://data.somesite.com/crown/test-id" } } } + where: { + realizationOf: { hasResourceType_SOME: { iri_EQ: "http://data.somesite.com/crown/test-id" } } + } limit: 1 ) { iri diff --git a/packages/graphql/tests/tck/null.test.ts b/packages/graphql/tests/tck/null.test.ts index 6171f28103..2747bacb07 100644 --- a/packages/graphql/tests/tck/null.test.ts +++ b/packages/graphql/tests/tck/null.test.ts @@ -87,7 +87,7 @@ describe("Cypher NULL", () => { test("Simple relationship IS NULL", async () => { const query = /* GraphQL */ ` query { - movies(where: { actors: null }) { + movies(where: { actors_SOME: null }) { title } } @@ -109,7 +109,7 @@ describe("Cypher NULL", () => { test("Simple relationship IS NOT NULL", async () => { const query = /* GraphQL */ ` query { - movies(where: { NOT: { actors: null } }) { + movies(where: { NOT: { actors_SOME: null } }) { title } } diff --git a/packages/ogm/src/generate.test.ts b/packages/ogm/src/generate.test.ts index b49919384b..c15def7a92 100644 --- a/packages/ogm/src/generate.test.ts +++ b/packages/ogm/src/generate.test.ts @@ -1449,8 +1449,6 @@ describe("generate", () => { OR?: InputMaybe>; AND?: InputMaybe>; NOT?: InputMaybe; - /** @deprecated Use \`actors_SOME\` instead. */ - actors?: InputMaybe; /** Return Movies where all of the related People match this filter */ actors_ALL?: InputMaybe; /** Return Movies where none of the related People match this filter */ @@ -1459,8 +1457,6 @@ describe("generate", () => { actors_SINGLE?: InputMaybe; /** Return Movies where some of the related People match this filter */ actors_SOME?: InputMaybe; - /** @deprecated Use \`actorsConnection_SOME\` instead. */ - actorsConnection?: InputMaybe; /** Return Movies where all of the related MovieActorsConnections match this filter */ actorsConnection_ALL?: InputMaybe; /** Return Movies where none of the related MovieActorsConnections match this filter */ @@ -2566,8 +2562,6 @@ describe("generate", () => { OR?: InputMaybe>; AND?: InputMaybe>; NOT?: InputMaybe; - /** @deprecated Use \`inFAQs_SOME\` instead. */ - inFAQs?: InputMaybe; /** Return FAQEntries where all of the related FAQS match this filter */ inFAQs_ALL?: InputMaybe; /** Return FAQEntries where none of the related FAQS match this filter */ @@ -2576,8 +2570,6 @@ describe("generate", () => { inFAQs_SINGLE?: InputMaybe; /** Return FAQEntries where some of the related FAQS match this filter */ inFAQs_SOME?: InputMaybe; - /** @deprecated Use \`inFAQsConnection_SOME\` instead. */ - inFAQsConnection?: InputMaybe; /** Return FAQEntries where all of the related FAQEntryInFAQsConnections match this filter */ inFAQsConnection_ALL?: InputMaybe; /** Return FAQEntries where none of the related FAQEntryInFAQsConnections match this filter */ @@ -2645,8 +2637,6 @@ describe("generate", () => { OR?: InputMaybe>; AND?: InputMaybe>; NOT?: InputMaybe; - /** @deprecated Use \`entries_SOME\` instead. */ - entries?: InputMaybe; /** Return FAQS where all of the related FAQEntries match this filter */ entries_ALL?: InputMaybe; /** Return FAQS where none of the related FAQEntries match this filter */ @@ -2655,8 +2645,6 @@ describe("generate", () => { entries_SINGLE?: InputMaybe; /** Return FAQS where some of the related FAQEntries match this filter */ entries_SOME?: InputMaybe; - /** @deprecated Use \`entriesConnection_SOME\` instead. */ - entriesConnection?: InputMaybe; /** Return FAQS where all of the related FAQEntriesConnections match this filter */ entriesConnection_ALL?: InputMaybe; /** Return FAQS where none of the related FAQEntriesConnections match this filter */ diff --git a/packages/ogm/tests/issues/3591.test.ts b/packages/ogm/tests/issues/3591.test.ts index 1ea18eb8a3..fee2fa1d89 100644 --- a/packages/ogm/tests/issues/3591.test.ts +++ b/packages/ogm/tests/issues/3591.test.ts @@ -968,8 +968,6 @@ describe("issues/3591", () => { OR?: InputMaybe>; AND?: InputMaybe>; NOT?: InputMaybe; - /** @deprecated Use \`company_SOME\` instead. */ - company?: InputMaybe; /** Return Users where all of the related Companies match this filter */ company_ALL?: InputMaybe; /** Return Users where none of the related Companies match this filter */ @@ -978,8 +976,6 @@ describe("issues/3591", () => { company_SINGLE?: InputMaybe; /** Return Users where some of the related Companies match this filter */ company_SOME?: InputMaybe; - /** @deprecated Use \`companyConnection_SOME\` instead. */ - companyConnection?: InputMaybe; /** Return Users where all of the related UserCompanyConnections match this filter */ companyConnection_ALL?: InputMaybe; /** Return Users where none of the related UserCompanyConnections match this filter */ @@ -989,8 +985,6 @@ describe("issues/3591", () => { /** Return Users where some of the related UserCompanyConnections match this filter */ companyConnection_SOME?: InputMaybe; companyAggregate?: InputMaybe; - /** @deprecated Use \`favoriteRestaurants_SOME\` instead. */ - favoriteRestaurants?: InputMaybe; /** Return Users where all of the related Restaurants match this filter */ favoriteRestaurants_ALL?: InputMaybe; /** Return Users where none of the related Restaurants match this filter */ @@ -999,8 +993,6 @@ describe("issues/3591", () => { favoriteRestaurants_SINGLE?: InputMaybe; /** Return Users where some of the related Restaurants match this filter */ favoriteRestaurants_SOME?: InputMaybe; - /** @deprecated Use \`favoriteRestaurantsConnection_SOME\` instead. */ - favoriteRestaurantsConnection?: InputMaybe; /** Return Users where all of the related UserFavoriteRestaurantsConnections match this filter */ favoriteRestaurantsConnection_ALL?: InputMaybe; /** Return Users where none of the related UserFavoriteRestaurantsConnections match this filter */