Skip to content

Commit cac389b

Browse files
committed
fix schema performance tests
1 parent 553d404 commit cac389b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/graphql/tests/performance/schema/schema-performance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import Neo4jGraphQL from "../../../src/classes/Neo4jGraphQL";
2121

22-
const basicTypeDefs = `
22+
const basicTypeDefs = /* GraphQL */ `
2323
type Journalist @node {
2424
articles: [Article!]! @relationship(type: "HAS_ARTICLE", direction: OUT, properties: "HasArticle")
2525
}
@@ -29,12 +29,12 @@ const basicTypeDefs = `
2929
}
3030
3131
type Article @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }]) @node {
32-
id: ID! @id @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }])
32+
id: ID! @id @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }])
3333
blocks: [Block!]! @relationship(type: "HAS_BLOCK", direction: OUT, properties: "HasBlock")
3434
images: [Image!]! @relationship(type: "HAS_IMAGE", direction: OUT)
3535
}
3636
37-
type HasBlock @relationshipProperties @node {
37+
type HasBlock @relationshipProperties {
3838
order: Int!
3939
}
4040

packages/graphql/tests/performance/schema/subgraph-schema-performance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import Neo4jGraphQL from "../../../src/classes/Neo4jGraphQL";
2121

22-
const basicTypeDefs = `
22+
const basicTypeDefs = /* GraphQL */ `
2323
extend schema @link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key"])
2424
2525
type Journalist @node {
@@ -31,12 +31,12 @@ const basicTypeDefs = `
3131
}
3232
3333
type Article @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }]) @node {
34-
id: ID! @id @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }])
34+
id: ID! @id @authorization(filter: [{ where: { node: { id: { eq: "$jwt.sub" } } } }])
3535
blocks: [Block!]! @relationship(type: "HAS_BLOCK", direction: OUT, properties: "HasBlock")
3636
images: [Image!]! @relationship(type: "HAS_IMAGE", direction: OUT)
3737
}
3838
39-
type HasBlock @relationshipProperties @node {
39+
type HasBlock @relationshipProperties {
4040
order: Int!
4141
}
4242

0 commit comments

Comments
 (0)