Skip to content

Commit

Permalink
fix(): inherit complexity from the model definition #1012
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jul 2, 2020
1 parent 6323f46 commit 4f2c366
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/schema-builder/storages/type-metadata.storage.ts
Expand Up @@ -385,7 +385,10 @@ export class TypeMetadataStorageHost {
if (!objectTypeField.extensions) {
objectTypeField.extensions = item.extensions;
}
objectTypeField.complexity = item.complexity;
objectTypeField.complexity =
item.complexity === undefined
? objectTypeField.complexity
: item.complexity;
}
}

Expand Down

0 comments on commit 4f2c366

Please sign in to comment.