Skip to content

Commit cd218fb

Browse files
committed
Remove definitions for @exclude, @readonly and @writeonly
1 parent dd7afb9 commit cd218fb

36 files changed

+147
-2568
lines changed

packages/graphql/src/graphql/directives/exclude.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

packages/graphql/src/graphql/directives/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,18 @@ export { cypherDirective } from "./cypher";
2424
export { selectableDirective } from "./selectable";
2525
export { settableDirective } from "./settable";
2626
export { defaultDirective } from "./default";
27-
export { excludeDirective } from "./exclude";
2827
export { fulltextDirective } from "./fulltext";
2928
export { idDirective } from "./id";
3029
export { nodeDirective } from "./node";
3130
export { pluralDirective } from "./plural";
3231
export { populatedByDirective } from "./populatedBy";
3332
export { privateDirective } from "./private";
3433
export { limitDirective } from "./limit";
35-
export { readonlyDirective } from "./readonly";
3634
export { relationshipPropertiesDirective } from "./relationship-properties";
3735
export { relationshipDirective } from "./relationship";
3836
export { relayIdDirective } from "./relay-id";
3937
export { timestampDirective } from "./timestamp";
4038
export { uniqueDirective } from "./unique";
41-
export { writeonlyDirective } from "./writeonly";
4239
export { mutationDirective } from "./mutation";
4340
export { queryDirective } from "./query";
4441
export { subscriptionDirective } from "./subscription";

packages/graphql/src/graphql/directives/readonly.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/graphql/src/graphql/directives/writeonly.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/graphql/src/schema/validation/validate-document.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe("validateDocument", () => {
180180
type Post {
181181
id: ID! @id @unique
182182
title: String!
183-
datetime: DateTime @readonly @timestamp(operations: [CREATE])
183+
datetime: DateTime @timestamp(operations: [CREATE])
184184
}
185185
`;
186186

packages/graphql/tests/e2e/subscriptions/create.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Create Subscription", () => {
4444
title: String
4545
actors: [${typeActor}]
4646
}
47-
type ${typeActor} @exclude(operations: [SUBSCRIBE]) {
47+
type ${typeActor} @subscription(operations: []) {
4848
name: String
4949
}
5050
`;

packages/graphql/tests/e2e/subscriptions/delete.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Delete Subscription", () => {
4444
title: String
4545
actors: [${typeActor}]
4646
}
47-
type ${typeActor} @exclude(operations: [SUBSCRIBE]) {
47+
type ${typeActor} @subscription(operations: []) {
4848
name: String
4949
}`;
5050

packages/graphql/tests/e2e/subscriptions/update.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("Update Subscriptions", () => {
4444
title: String
4545
actors: [${typeActor}]
4646
}
47-
type ${typeActor} @exclude(operations: [SUBSCRIBE]) {
47+
type ${typeActor} @subscription(operations: []) {
4848
name: String
4949
}
5050
`;

packages/graphql/tests/integration/directives/authorization/is-authenticated.int.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ describe("auth/is-authenticated", () => {
32793279
const session = await neo4j.getSession({ defaultAccessMode: "WRITE" });
32803280

32813281
const typeDefs = `
3282-
type ${User} @exclude {
3282+
type ${User} @mutation(operations: []) @query(read: false, aggregate: false) {
32833283
id: ID
32843284
name: String
32853285
}
@@ -3329,7 +3329,7 @@ describe("auth/is-authenticated", () => {
33293329
roles: [String!]!
33303330
}
33313331
3332-
type ${User} @exclude {
3332+
type ${User} @mutation(operations: []) @query(read: false, aggregate: false) {
33333333
id: ID
33343334
name: String
33353335
}
@@ -3375,7 +3375,7 @@ describe("auth/is-authenticated", () => {
33753375
const session = await neo4j.getSession({ defaultAccessMode: "WRITE" });
33763376

33773377
const typeDefs = `
3378-
type ${User} @exclude {
3378+
type ${User} @mutation(operations: []) @query(read: false, aggregate: false) {
33793379
id: ID
33803380
name: String
33813381
}
@@ -3429,7 +3429,7 @@ describe("auth/is-authenticated", () => {
34293429
roles: [String!]!
34303430
}
34313431
3432-
type ${User} @exclude {
3432+
type ${User} @mutation(operations: []) @query(read: false, aggregate: false) {
34333433
id: ID
34343434
name: String
34353435
}

packages/graphql/tests/integration/directives/authorization/roles.int.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ describe("auth/roles", () => {
10631063
roles: [String!]!
10641064
}
10651065
1066-
type ${typeUser} @exclude {
1066+
type ${typeUser} @mutation(operations: []) @query(read: false, aggregate: false) {
10671067
id: ID
10681068
name: String
10691069
}

0 commit comments

Comments
 (0)