Skip to content

Commit 1bbb262

Browse files
committed
added if block with note to handle non-null wrappers when building type weights.
1 parent 5f7b185 commit 1bbb262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/analysis/buildTypeWeights.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ function parseObjectFields(
162162
result.fields[field] = {
163163
resolveTo: fieldType.name.toLocaleLowerCase(),
164164
};
165+
} else if (isNonNullType(fieldType)) {
166+
// TODO: Implment non-null types
167+
// not throwing and error since it causes typeWeight tests to break
165168
} else {
166169
// ? what else can get through here
167170
throw new Error(`ERROR: buildTypeWeight: Unsupported field type: ${fieldType}`);

0 commit comments

Comments
 (0)