Skip to content

Commit 8726ceb

Browse files
authored
Merge branch 'dev' into 6115-total-count-only-connection
2 parents fa5d1ef + 7671025 commit 8726ceb

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

packages/graphql/src/schema-model/relationship/Relationship.ts

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

2020
import { Neo4jGraphQLSchemaValidationError } from "../../classes";
2121
import type { RelationshipNestedOperationsOption, RelationshipQueryDirectionOption } from "../../constants";
22-
import { upperFirst } from "../../utils/upper-first";
2322
import type { Annotations } from "../annotation/Annotation";
2423
import type { Argument } from "../argument/Argument";
2524
import type { Attribute } from "../attribute/Attribute";
@@ -116,56 +115,18 @@ export class Relationship {
116115
}
117116
}
118117

119-
public clone(): Relationship {
120-
return new Relationship({
121-
name: this.name,
122-
type: this.type,
123-
args: this.args,
124-
attributes: Array.from(this.attributes.values()).map((a) => a.clone()),
125-
source: this.source,
126-
target: this.target,
127-
direction: this.direction,
128-
isList: this.isList,
129-
queryDirection: this.queryDirection,
130-
nestedOperations: this.nestedOperations,
131-
aggregate: this.aggregate,
132-
isNullable: this.isNullable,
133-
description: this.description,
134-
annotations: this.annotations,
135-
propertiesTypeName: this.propertiesTypeName,
136-
firstDeclaredInTypeName: this.firstDeclaredInTypeName,
137-
originalTarget: this.originalTarget,
138-
siblings: this.siblings,
139-
});
140-
}
141-
142118
private addAttribute(attribute: Attribute): void {
143119
if (this.attributes.has(attribute.name)) {
144120
throw new Neo4jGraphQLSchemaValidationError(`Attribute ${attribute.name} already exists in ${this.name}.`);
145121
}
146122
this.attributes.set(attribute.name, attribute);
147123
}
148124

149-
public findAttribute(name: string): Attribute | undefined {
150-
return this.attributes.get(name);
151-
}
152-
153125
public setSiblings(siblingPropertiesTypeNames: string[]) {
154126
this.siblings = siblingPropertiesTypeNames;
155127
}
156128

157129
public getSiblings(): string[] | undefined {
158130
return this.siblings;
159131
}
160-
161-
// TODO: Remove connectionFieldTypename and relationshipFieldTypename and delegate to the adapter
162-
/**Note: Required for now to infer the types without ResolveTree */
163-
public get connectionFieldTypename(): string {
164-
return `${this.source.name}${upperFirst(this.name)}Connection`;
165-
}
166-
167-
/**Note: Required for now to infer the types without ResolveTree */
168-
public get relationshipFieldTypename(): string {
169-
return `${this.source.name}${upperFirst(this.name)}Relationship`;
170-
}
171132
}

0 commit comments

Comments
 (0)