Skip to content

Commit 2b34b36

Browse files
committed
made some notes about what types/edge-cases could be falling through our buildTypeWeights function
1 parent 88cbef8 commit 2b34b36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/analysis/buildTypeWeights.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,14 @@ function parseTypes(schema: GraphQLSchema, typeWeights: TypeWeightConfig): TypeW
196196
weight: typeWeights.scalar || DEFAULT_SCALAR_WEIGHT,
197197
};
198198
} else if (isUnionType(currentType)) {
199+
// FIXME: will need information on fields inorder calculate comlpextiy
199200
result[typeName] = {
200201
fields: {},
201202
weight: typeWeights.object || DEFAULT_OBJECT_WEIGHT,
202203
};
203204
} else {
204205
// ? what else can get through here
206+
// ? inputTypes?
205207
}
206208
}
207209
});

0 commit comments

Comments
 (0)