Skip to content

Commit 36bc7fc

Browse files
committed
remove isNested from populatedFields in createFactory
1 parent 8e25ca9 commit 36bc7fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/graphql/src/translate/queryAST/factory/Operations/CreateFactory.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ export class CreateFactory {
388388
create,
389389
input,
390390
callbackBucket,
391-
isNested,
392391
relationship,
393392
});
394393
}
@@ -460,14 +459,12 @@ export class CreateFactory {
460459
create,
461460
input,
462461
callbackBucket,
463-
isNested,
464462
relationship,
465463
}: {
466464
entity: ConcreteEntityAdapter;
467465
create: CreateOperation;
468466
input: Record<string, any>;
469467
callbackBucket: CallbackBucket;
470-
isNested: boolean;
471468
relationship?: RelationshipAdapter;
472469
}) {
473470
entity.getPopulatedByFields("CREATE").forEach((attribute) => {
@@ -494,8 +491,8 @@ export class CreateFactory {
494491
});
495492
});
496493

497-
if (isNested) {
498-
relationship?.getPopulatedByFields("CREATE").forEach((attribute) => {
494+
if (relationship) {
495+
relationship.getPopulatedByFields("CREATE").forEach((attribute) => {
499496
const attachedTo = "relationship";
500497
// the param value it's irrelevant as it will be overwritten by the callback function
501498
const relCallbackParam = new Cypher.Param("");

0 commit comments

Comments
 (0)