Skip to content

Commit

Permalink
Update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Nov 4, 2024
1 parent eb5762d commit 9c75f92
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-grapes-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/graphql": major
---

Remove support for `connectOrCreate` operations
5 changes: 5 additions & 0 deletions .changeset/short-pillows-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/graphql": major
---

Remove support for `@unique` directive
29 changes: 0 additions & 29 deletions packages/graphql/src/schema-model/annotation/UniqueAnnotation.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

import { CypherAnnotation } from "../../annotation/CypherAnnotation";
import { UniqueAnnotation } from "../../annotation/UniqueAnnotation";
import { Attribute } from "../../attribute/Attribute";
import { GraphQLBuiltInScalarType, ScalarType } from "../../attribute/AttributeType";
import { AttributeAdapter } from "../../attribute/model-adapters/AttributeAdapter";
Expand All @@ -34,7 +33,7 @@ describe("ConcreteEntityAdapter", () => {
beforeAll(() => {
const idAttribute = new Attribute({
name: "id",
annotations: { unique: new UniqueAnnotation({ constraintName: "User_id_unique" }) },
annotations: {},
type: new ScalarType(GraphQLBuiltInScalarType.ID, true),
args: [],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

import { SelectableAnnotation } from "../../annotation/SelectableAnnotation";
import { UniqueAnnotation } from "../../annotation/UniqueAnnotation";
import { Attribute } from "../../attribute/Attribute";
import { GraphQLBuiltInScalarType, ScalarType } from "../../attribute/AttributeType";
import { ConcreteEntity } from "../../entity/ConcreteEntity";
Expand All @@ -33,7 +32,7 @@ describe("RelationshipAdapter", () => {
beforeAll(() => {
const userId = new Attribute({
name: "id",
annotations: { unique: new UniqueAnnotation({ constraintName: "User_id_unique" }) },
annotations: {},
type: new ScalarType(GraphQLBuiltInScalarType.ID, true),
args: [],
});
Expand All @@ -47,7 +46,7 @@ describe("RelationshipAdapter", () => {

const accountId = new Attribute({
name: "id",
annotations: { unique: new UniqueAnnotation({ constraintName: "User_id_unique" }) },
annotations: {},
type: new ScalarType(GraphQLBuiltInScalarType.ID, true),
args: [],
});
Expand Down

0 comments on commit 9c75f92

Please sign in to comment.