@graphitation/supermassive 0.6.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/CHANGELOG.json +61 -1
- package/CHANGELOG.md +34 -2
- package/lib/benchmarks/index.js +13 -0
- package/lib/benchmarks/index.mjs +19 -1
- package/lib/benchmarks/swapi-schema/__generated__/schema.d.ts +3 -0
- package/lib/benchmarks/swapi-schema/__generated__/schema.d.ts.map +1 -0
- package/lib/collectFields.d.ts.map +1 -1
- package/lib/collectFields.js +33 -5
- package/lib/collectFields.mjs +33 -5
- package/lib/definition.d.ts +3 -0
- package/lib/definition.d.ts.map +1 -1
- package/lib/definition.js +9 -1
- package/lib/definition.mjs +9 -1
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +2 -16
- package/lib/executeWithSchema.mjs +2 -19
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +31 -12
- package/lib/executeWithoutSchema.mjs +31 -12
- package/lib/extractImplicitTypesRuntime.d.ts.map +1 -1
- package/lib/extractImplicitTypesRuntime.js +24 -3
- package/lib/extractImplicitTypesRuntime.mjs +24 -3
- package/lib/extractImplicitTypesToTypescript.d.ts.map +1 -1
- package/lib/extractImplicitTypesToTypescript.js +66 -17
- package/lib/extractImplicitTypesToTypescript.mjs +66 -17
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/subscribeWithSchema.d.ts.map +1 -1
- package/lib/subscribeWithSchema.js +2 -16
- package/lib/subscribeWithSchema.mjs +2 -19
- package/lib/subscribeWithoutSchema.d.ts.map +1 -1
- package/lib/subscribeWithoutSchema.js +5 -1
- package/lib/subscribeWithoutSchema.mjs +5 -1
- package/lib/types.d.ts +15 -2
- package/lib/types.d.ts.map +1 -1
- package/lib/utilities/mergeResolvers.d.ts +3 -0
- package/lib/utilities/mergeResolvers.d.ts.map +1 -0
- package/lib/utilities/mergeResolvers.js +36 -0
- package/lib/utilities/mergeResolvers.mjs +32 -0
- package/package.json +2 -2
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts":"1","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts":"4","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts":"7","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts":"13","/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts":"14","/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts":"15","/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts":"16","/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts":"17","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts":"18","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts":"19","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts":"20","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts":"21","/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts":"22","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"23","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"24","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts":"25","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"26","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"27","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"28","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"29","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts":"30","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"31","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts":"32","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"33","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"34","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"35","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"36","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"37","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"38","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"39","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"40","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"41","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"42","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"43","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"44","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"45","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"46","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts":"47","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts":"48","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"49","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts":"50","/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts":"51","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts":"52","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"53","/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts":"54"},{"size":5255,"mtime":1643188140386,"results":"55","hashOfConfig":"56"},{"size":3110,"mtime":1643188140386,"results":"57","hashOfConfig":"56"},{"size":7543,"mtime":1643188140386,"results":"58","hashOfConfig":"56"},{"size":14345,"mtime":1643188140386,"results":"59","hashOfConfig":"56"},{"size":5297,"mtime":1643188140386,"results":"60","hashOfConfig":"56"},{"size":2189,"mtime":1643188140386,"results":"61","hashOfConfig":"56"},{"size":3146,"mtime":1643188140386,"results":"62","hashOfConfig":"56"},{"size":712,"mtime":1643188140386,"results":"63","hashOfConfig":"56"},{"size":382,"mtime":1643188140386,"results":"64","hashOfConfig":"56"},{"size":128,"mtime":1643188140386,"results":"65","hashOfConfig":"56"},{"size":10233,"mtime":1643188140386,"results":"66","hashOfConfig":"56"},{"size":848,"mtime":1643188140386,"results":"67","hashOfConfig":"56"},{"size":1654,"mtime":1643188140386,"results":"68","hashOfConfig":"56"},{"size":4179,"mtime":1643188140386,"results":"69","hashOfConfig":"56"},{"size":3431,"mtime":1643188140386,"results":"70","hashOfConfig":"56"},{"size":1215,"mtime":1643188140386,"results":"71","hashOfConfig":"56"},{"size":6589,"mtime":1643188140386,"results":"72","hashOfConfig":"56"},{"size":1313,"mtime":1643188140386,"results":"73","hashOfConfig":"56"},{"size":27208,"mtime":1643188140386,"results":"74","hashOfConfig":"56"},{"size":4017,"mtime":1643188140386,"results":"75","hashOfConfig":"56"},{"size":10446,"mtime":1643188140386,"results":"76","hashOfConfig":"56"},{"size":1595,"mtime":1643188140386,"results":"77","hashOfConfig":"56"},{"size":134,"mtime":1643188140386,"results":"78","hashOfConfig":"56"},{"size":277,"mtime":1643188140386,"results":"79","hashOfConfig":"56"},{"size":711,"mtime":1643188140386,"results":"80","hashOfConfig":"56"},{"size":48,"mtime":1643188140386,"results":"81","hashOfConfig":"56"},{"size":269,"mtime":1643188140386,"results":"82","hashOfConfig":"56"},{"size":1038,"mtime":1643188140386,"results":"83","hashOfConfig":"56"},{"size":108,"mtime":1643188140386,"results":"84","hashOfConfig":"56"},{"size":2797,"mtime":1643188140386,"results":"85","hashOfConfig":"56"},{"size":2294,"mtime":1643188140386,"results":"86","hashOfConfig":"56"},{"size":357,"mtime":1643188140386,"results":"87","hashOfConfig":"56"},{"size":325,"mtime":1643188140386,"results":"88","hashOfConfig":"56"},{"size":778,"mtime":1643188140386,"results":"89","hashOfConfig":"56"},{"size":278,"mtime":1643188140386,"results":"90","hashOfConfig":"56"},{"size":227,"mtime":1643188140386,"results":"91","hashOfConfig":"56"},{"size":921,"mtime":1643188140386,"results":"92","hashOfConfig":"56"},{"size":764,"mtime":1643188140386,"results":"93","hashOfConfig":"56"},{"size":441,"mtime":1643188140386,"results":"94","hashOfConfig":"56"},{"size":821,"mtime":1643188140386,"results":"95","hashOfConfig":"56"},{"size":1314,"mtime":1643188140386,"results":"96","hashOfConfig":"56"},{"size":253,"mtime":1643188140386,"results":"97","hashOfConfig":"56"},{"size":650,"mtime":1643188140386,"results":"98","hashOfConfig":"56"},{"size":803,"mtime":1643188140386,"results":"99","hashOfConfig":"56"},{"size":3938,"mtime":1643188140386,"results":"100","hashOfConfig":"56"},{"size":503,"mtime":1643188140386,"results":"101","hashOfConfig":"56"},{"size":1364,"mtime":1643188140386,"results":"102","hashOfConfig":"56"},{"size":8936,"mtime":1643188140386,"results":"103","hashOfConfig":"56"},{"size":495,"mtime":1643188140386,"results":"104","hashOfConfig":"56"},{"size":6652,"mtime":1643188140386,"results":"105","hashOfConfig":"56"},{"size":3826,"mtime":1643188140386,"results":"106","hashOfConfig":"56"},{"size":1815,"mtime":1643188140386,"results":"107","hashOfConfig":"56"},{"size":308,"mtime":1643188140386,"results":"108","hashOfConfig":"56"},{"size":9318,"mtime":1643188140386,"results":"109","hashOfConfig":"56"},{"filePath":"110","messages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"f884pq",{"filePath":"112","messages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts",[]]
|
|
1
|
+
[{"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts":"1","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts":"2","/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts":"3","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts":"4","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts":"5","/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts":"6","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts":"7","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts":"8","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts":"9","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts":"10","/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts":"11","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts":"12","/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts":"13","/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts":"14","/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts":"15","/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts":"16","/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts":"17","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts":"18","/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts":"19","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts":"20","/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts":"21","/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts":"22","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts":"23","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts":"24","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts":"25","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts":"26","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts":"27","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts":"28","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts":"29","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts":"30","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts":"31","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts":"32","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts":"33","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts":"34","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts":"35","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts":"36","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts":"37","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts":"38","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts":"39","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts":"40","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts":"41","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts":"42","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts":"43","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts":"44","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts":"45","/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts":"46","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts":"47","/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts":"48","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts":"49","/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts":"50","/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts":"51","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts":"52","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mergeResolvers.ts":"53","/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts":"54","/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts":"55"},{"size":6041,"mtime":1644498446261,"results":"56","hashOfConfig":"57"},{"size":1592,"mtime":1644498446261,"results":"58","hashOfConfig":"57"},{"size":6845,"mtime":1644498446261,"results":"59","hashOfConfig":"57"},{"size":14345,"mtime":1644498446261,"results":"60","hashOfConfig":"57"},{"size":5297,"mtime":1644498446261,"results":"61","hashOfConfig":"57"},{"size":2189,"mtime":1644498446261,"results":"62","hashOfConfig":"57"},{"size":3662,"mtime":1644498446261,"results":"63","hashOfConfig":"57"},{"size":712,"mtime":1644498446261,"results":"64","hashOfConfig":"57"},{"size":382,"mtime":1644498446261,"results":"65","hashOfConfig":"57"},{"size":128,"mtime":1644498446261,"results":"66","hashOfConfig":"57"},{"size":10233,"mtime":1644498446261,"results":"67","hashOfConfig":"57"},{"size":848,"mtime":1644498446265,"results":"68","hashOfConfig":"57"},{"size":1655,"mtime":1644498446265,"results":"69","hashOfConfig":"57"},{"size":5387,"mtime":1644498446265,"results":"70","hashOfConfig":"57"},{"size":3431,"mtime":1644498446265,"results":"71","hashOfConfig":"57"},{"size":1649,"mtime":1644498446265,"results":"72","hashOfConfig":"57"},{"size":6589,"mtime":1644498446265,"results":"73","hashOfConfig":"57"},{"size":1230,"mtime":1644498446265,"results":"74","hashOfConfig":"57"},{"size":28220,"mtime":1644498446265,"results":"75","hashOfConfig":"57"},{"size":4918,"mtime":1644498446265,"results":"76","hashOfConfig":"57"},{"size":14787,"mtime":1644498446265,"results":"77","hashOfConfig":"57"},{"size":1735,"mtime":1644498446265,"results":"78","hashOfConfig":"57"},{"size":134,"mtime":1644498446265,"results":"79","hashOfConfig":"57"},{"size":277,"mtime":1644498446265,"results":"80","hashOfConfig":"57"},{"size":711,"mtime":1644498446265,"results":"81","hashOfConfig":"57"},{"size":48,"mtime":1644498446265,"results":"82","hashOfConfig":"57"},{"size":269,"mtime":1644498446265,"results":"83","hashOfConfig":"57"},{"size":1038,"mtime":1644498446265,"results":"84","hashOfConfig":"57"},{"size":108,"mtime":1644498446265,"results":"85","hashOfConfig":"57"},{"size":2797,"mtime":1644498446265,"results":"86","hashOfConfig":"57"},{"size":2294,"mtime":1644498446265,"results":"87","hashOfConfig":"57"},{"size":357,"mtime":1644498446265,"results":"88","hashOfConfig":"57"},{"size":325,"mtime":1644498446265,"results":"89","hashOfConfig":"57"},{"size":778,"mtime":1644498446265,"results":"90","hashOfConfig":"57"},{"size":278,"mtime":1644498446265,"results":"91","hashOfConfig":"57"},{"size":227,"mtime":1644498446265,"results":"92","hashOfConfig":"57"},{"size":921,"mtime":1644498446265,"results":"93","hashOfConfig":"57"},{"size":764,"mtime":1644498446265,"results":"94","hashOfConfig":"57"},{"size":441,"mtime":1644498446265,"results":"95","hashOfConfig":"57"},{"size":821,"mtime":1644498446265,"results":"96","hashOfConfig":"57"},{"size":1314,"mtime":1644498446265,"results":"97","hashOfConfig":"57"},{"size":253,"mtime":1644498446265,"results":"98","hashOfConfig":"57"},{"size":650,"mtime":1644498446265,"results":"99","hashOfConfig":"57"},{"size":803,"mtime":1644498446265,"results":"100","hashOfConfig":"57"},{"size":3938,"mtime":1644498446265,"results":"101","hashOfConfig":"57"},{"size":503,"mtime":1644498446265,"results":"102","hashOfConfig":"57"},{"size":1280,"mtime":1644498446265,"results":"103","hashOfConfig":"57"},{"size":9122,"mtime":1644498446265,"results":"104","hashOfConfig":"57"},{"size":495,"mtime":1644498446265,"results":"105","hashOfConfig":"57"},{"size":6652,"mtime":1644498446265,"results":"106","hashOfConfig":"57"},{"size":4576,"mtime":1644498446265,"results":"107","hashOfConfig":"57"},{"size":1815,"mtime":1644498446265,"results":"108","hashOfConfig":"57"},{"size":735,"mtime":1644498446265,"results":"109","hashOfConfig":"57"},{"size":308,"mtime":1644498446265,"results":"110","hashOfConfig":"57"},{"size":9318,"mtime":1644498446265,"results":"111","hashOfConfig":"57"},{"filePath":"112","messages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mi6wul",{"filePath":"114","messages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/execute.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/extractImplicitTypes.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/__tests__/subscribe.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/TypedAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/__tests__/addTypesToRequestDocument.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/ast/addTypesToRequestDocument.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/nice-benchmark.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/models.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/benchmarks/swapi-schema/resolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/__tests__/typeDefsToImplicitResolvers.test.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/bin/supermassive.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/collectFields.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/compiledQuery.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/definition.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/directives.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/executeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesRuntime.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/extractImplicitTypesToTypescript.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/index.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Maybe.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/ObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/Path.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/PromiseOrValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/devAssert.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/didYouMean.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/identityFunc.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/inspect.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/instanceOf.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/invariant.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isAsyncIterable.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isIterableObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isObjectLike.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/isPromise.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/keyValMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/mapValue.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/memoize3.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/naturalCompare.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/printPathArray.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseForObject.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/promiseReduce.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/suggestionList.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/jsutils/toObjMap.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/subscribeWithoutSchema.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/annotateDocumentGraphQLTransform.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/transforms/transformerTestUtils.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/types.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mapAsyncIterator.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/mergeResolvers.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/utilities/typeNameFromAST.ts",[],"/home/runner/work/graphitation/graphitation/packages/supermassive/src/values.ts",[]]
|
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,67 @@
|
|
|
2
2
|
"name": "@graphitation/supermassive",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 10 Feb 2022 13:09:41 GMT",
|
|
6
|
+
"tag": "@graphitation/supermassive_v0.8.0",
|
|
7
|
+
"version": "0.8.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jakubvejr@microsoft.com",
|
|
12
|
+
"package": "@graphitation/supermassive",
|
|
13
|
+
"commit": "a12b07ea264c714c3a1a4594084cfe9145e0a3a8",
|
|
14
|
+
"comment": "Resolvers merge is not required before using executeWithoutSchema"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 07 Feb 2022 09:13:38 GMT",
|
|
21
|
+
"tag": "@graphitation/supermassive_v0.7.2",
|
|
22
|
+
"version": "0.7.2",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "jakubvejr@microsoft.com",
|
|
27
|
+
"package": "@graphitation/supermassive",
|
|
28
|
+
"commit": "e424c9cafe96e42a28edecf8ea1ef3500d7b071b",
|
|
29
|
+
"comment": "tests use extracted resolvers from typescript file"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Fri, 04 Feb 2022 11:53:40 GMT",
|
|
36
|
+
"tag": "@graphitation/supermassive_v0.7.1",
|
|
37
|
+
"version": "0.7.1",
|
|
38
|
+
"comments": {
|
|
39
|
+
"patch": [
|
|
40
|
+
{
|
|
41
|
+
"author": "jakubvejr@microsoft.com",
|
|
42
|
+
"package": "@graphitation/supermassive",
|
|
43
|
+
"commit": "943230ef7535d211f99a7ea8a54cc5e80a50754c",
|
|
44
|
+
"comment": "ensureValidRuntimeType error messages modified"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Thu, 03 Feb 2022 09:30:26 GMT",
|
|
51
|
+
"tag": "@graphitation/supermassive_v0.7.0",
|
|
52
|
+
"version": "0.7.0",
|
|
53
|
+
"comments": {
|
|
54
|
+
"minor": [
|
|
55
|
+
{
|
|
56
|
+
"author": "jakubvejr@microsoft.com",
|
|
57
|
+
"package": "@graphitation/supermassive",
|
|
58
|
+
"commit": "8de2f546c23c6d09c6461ca291873ed22660566f",
|
|
59
|
+
"comment": "check whether a fragment is applicable to the given type"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"date": "Wed, 26 Jan 2022 09:11:30 GMT",
|
|
6
66
|
"tag": "@graphitation/supermassive_v0.6.3",
|
|
7
67
|
"version": "0.6.3",
|
|
8
68
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
# Change Log - @graphitation/supermassive
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 10 Feb 2022 13:09:41 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.8.0
|
|
8
|
+
|
|
9
|
+
Thu, 10 Feb 2022 13:09:41 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Resolvers merge is not required before using executeWithoutSchema (jakubvejr@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 0.7.2
|
|
16
|
+
|
|
17
|
+
Mon, 07 Feb 2022 09:13:38 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- tests use extracted resolvers from typescript file (jakubvejr@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.7.1
|
|
24
|
+
|
|
25
|
+
Fri, 04 Feb 2022 11:53:40 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- ensureValidRuntimeType error messages modified (jakubvejr@microsoft.com)
|
|
30
|
+
|
|
31
|
+
## 0.7.0
|
|
32
|
+
|
|
33
|
+
Thu, 03 Feb 2022 09:30:26 GMT
|
|
34
|
+
|
|
35
|
+
### Minor changes
|
|
36
|
+
|
|
37
|
+
- check whether a fragment is applicable to the given type (jakubvejr@microsoft.com)
|
|
38
|
+
|
|
7
39
|
## 0.6.3
|
|
8
40
|
|
|
9
|
-
Wed, 26 Jan 2022 09:11:
|
|
41
|
+
Wed, 26 Jan 2022 09:11:30 GMT
|
|
10
42
|
|
|
11
43
|
### Patches
|
|
12
44
|
|
package/lib/benchmarks/index.js
CHANGED
|
@@ -46,6 +46,8 @@ var import_graphql = __toModule(require("graphql"));
|
|
|
46
46
|
var import_graphql_jit = __toModule(require("graphql-jit"));
|
|
47
47
|
var import_executeWithoutSchema = __toModule(require("../executeWithoutSchema"));
|
|
48
48
|
var import_addTypesToRequestDocument = __toModule(require("../ast/addTypesToRequestDocument"));
|
|
49
|
+
var import_extractImplicitTypesRuntime = __toModule(require("../extractImplicitTypesRuntime"));
|
|
50
|
+
var import_values = __toModule(require("../values"));
|
|
49
51
|
const query = import_fs.default.readFileSync(import_path.default.join(__dirname, "./fixtures/query1.graphql"), {
|
|
50
52
|
encoding: "utf-8"
|
|
51
53
|
});
|
|
@@ -95,8 +97,19 @@ queryRunningSuite.add("graphql-jit - precompiled", () => __async(void 0, null, f
|
|
|
95
97
|
}
|
|
96
98
|
}));
|
|
97
99
|
queryRunningSuite.add("supermassive - runtime schemaless", () => __async(void 0, null, function* () {
|
|
100
|
+
let extractedResolvers = {};
|
|
101
|
+
const getTypeByName = (name) => {
|
|
102
|
+
const type = import_values.specifiedScalars[name] || extractedResolvers[name];
|
|
103
|
+
if ((0, import_graphql.isInputType)(type)) {
|
|
104
|
+
return type;
|
|
105
|
+
} else {
|
|
106
|
+
throw new Error("Invalid type");
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
extractedResolvers = (0, import_extractImplicitTypesRuntime.extractImplicitTypes)(parsedQuery, getTypeByName);
|
|
98
110
|
const result = yield (0, import_executeWithoutSchema.executeWithoutSchema)({
|
|
99
111
|
resolvers: import_resolvers.default,
|
|
112
|
+
schemaResolvers: extractedResolvers,
|
|
100
113
|
document: typeAnnotatedQuery,
|
|
101
114
|
contextValue: {models: import_models.default}
|
|
102
115
|
});
|
package/lib/benchmarks/index.mjs
CHANGED
|
@@ -26,10 +26,17 @@ import NiceBenchmark from "./nice-benchmark.mjs";
|
|
|
26
26
|
import schema from "./swapi-schema.mjs";
|
|
27
27
|
import resolvers from "./swapi-schema/resolvers.mjs";
|
|
28
28
|
import models from "./swapi-schema/models.mjs";
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
graphql,
|
|
31
|
+
execute as graphqlExecute,
|
|
32
|
+
parse,
|
|
33
|
+
isInputType
|
|
34
|
+
} from "graphql";
|
|
30
35
|
import {compileQuery, isCompiledQuery} from "graphql-jit";
|
|
31
36
|
import {executeWithoutSchema as supermassiveExecute} from "../executeWithoutSchema.mjs";
|
|
32
37
|
import {addTypesToRequestDocument} from "../ast/addTypesToRequestDocument.mjs";
|
|
38
|
+
import {extractImplicitTypes} from "../extractImplicitTypesRuntime.mjs";
|
|
39
|
+
import {specifiedScalars} from "../values.mjs";
|
|
33
40
|
var query = fs.readFileSync(path.join(__dirname, "./fixtures/query1.graphql"), {
|
|
34
41
|
encoding: "utf-8"
|
|
35
42
|
});
|
|
@@ -79,8 +86,19 @@ queryRunningSuite.add("graphql-jit - precompiled", () => __async(void 0, null, f
|
|
|
79
86
|
}
|
|
80
87
|
}));
|
|
81
88
|
queryRunningSuite.add("supermassive - runtime schemaless", () => __async(void 0, null, function* () {
|
|
89
|
+
let extractedResolvers = {};
|
|
90
|
+
const getTypeByName = (name) => {
|
|
91
|
+
const type = specifiedScalars[name] || extractedResolvers[name];
|
|
92
|
+
if (isInputType(type)) {
|
|
93
|
+
return type;
|
|
94
|
+
} else {
|
|
95
|
+
throw new Error("Invalid type");
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
extractedResolvers = extractImplicitTypes(parsedQuery, getTypeByName);
|
|
82
99
|
const result = yield supermassiveExecute({
|
|
83
100
|
resolvers,
|
|
101
|
+
schemaResolvers: extractedResolvers,
|
|
84
102
|
document: typeAnnotatedQuery,
|
|
85
103
|
contextValue: {models}
|
|
86
104
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/benchmarks/swapi-schema/__generated__/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAkF,MAAM,4BAA4B,CAAC;AAcvI,eAAO,MAAM,SAAS,EAAE,SAAqI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectFields.d.ts","sourceRoot":"","sources":["../src/collectFields.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"collectFields.d.ts","sourceRoot":"","sources":["../src/collectFields.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM/C,OAAO,EAAE,SAAS,EAA4C,MAAM,SAAS,CAAC;AAE9E;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EACzC,cAAc,EAAE;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/C,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,gBAAgB,EAC9B,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,EACrC,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,GAChC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAgE/B"}
|
package/lib/collectFields.js
CHANGED
|
@@ -27,6 +27,8 @@ __export(exports, {
|
|
|
27
27
|
var import_graphql = __toModule(require("graphql"));
|
|
28
28
|
var import_values = __toModule(require("./values"));
|
|
29
29
|
var import_directives = __toModule(require("./directives"));
|
|
30
|
+
var import_typeNameFromAST = __toModule(require("./utilities/typeNameFromAST"));
|
|
31
|
+
var import_definition = __toModule(require("./definition"));
|
|
30
32
|
function collectFields(resolvers, fragments, variableValues, runtimeTypeName, selectionSet, fields, visitedFragmentNames) {
|
|
31
33
|
for (const selection of selectionSet.selections) {
|
|
32
34
|
switch (selection.kind) {
|
|
@@ -44,7 +46,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
44
46
|
break;
|
|
45
47
|
}
|
|
46
48
|
case import_graphql.Kind.INLINE_FRAGMENT: {
|
|
47
|
-
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
49
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName, resolvers)) {
|
|
48
50
|
continue;
|
|
49
51
|
}
|
|
50
52
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, selection.selectionSet, fields, visitedFragmentNames);
|
|
@@ -57,7 +59,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
57
59
|
}
|
|
58
60
|
visitedFragmentNames.add(fragName);
|
|
59
61
|
const fragment = fragments[fragName];
|
|
60
|
-
if (!fragment || !doesFragmentConditionMatch(fragment, runtimeTypeName)) {
|
|
62
|
+
if (!fragment || !doesFragmentConditionMatch(fragment, runtimeTypeName, resolvers)) {
|
|
61
63
|
continue;
|
|
62
64
|
}
|
|
63
65
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, fragment.selectionSet, fields, visitedFragmentNames);
|
|
@@ -82,15 +84,41 @@ function shouldIncludeNode(resolvers, variableValues, node) {
|
|
|
82
84
|
}
|
|
83
85
|
return true;
|
|
84
86
|
}
|
|
85
|
-
function doesFragmentConditionMatch(fragment, typeName) {
|
|
87
|
+
function doesFragmentConditionMatch(fragment, typeName, resolvers) {
|
|
86
88
|
const typeConditionNode = fragment.typeCondition;
|
|
87
89
|
if (!typeConditionNode) {
|
|
88
90
|
return true;
|
|
89
91
|
}
|
|
90
|
-
|
|
92
|
+
const conditionalType = (0, import_typeNameFromAST.typeNameFromAST)(typeConditionNode);
|
|
93
|
+
if (conditionalType === typeName) {
|
|
91
94
|
return true;
|
|
92
95
|
}
|
|
93
|
-
|
|
96
|
+
const subTypes = getSubTypes(resolvers, new Set(), conditionalType);
|
|
97
|
+
return subTypes.has(typeName);
|
|
98
|
+
}
|
|
99
|
+
function getSubTypes(resolvers, abstractTypes, conditionalType) {
|
|
100
|
+
const resolver = resolvers[conditionalType];
|
|
101
|
+
if ((0, import_definition.isInterfaceResolverType)(resolver)) {
|
|
102
|
+
const result = resolver.__implementedBy.reduce((acc, item) => {
|
|
103
|
+
if (!abstractTypes.has(item)) {
|
|
104
|
+
const newTypes = new Set([...abstractTypes, item]);
|
|
105
|
+
acc.push(...abstractTypes, ...getSubTypes(resolvers, newTypes, item));
|
|
106
|
+
}
|
|
107
|
+
return acc;
|
|
108
|
+
}, []);
|
|
109
|
+
return new Set([...result]);
|
|
110
|
+
}
|
|
111
|
+
if ((0, import_definition.isUnionResolverType)(resolver)) {
|
|
112
|
+
const result = resolver.__types.reduce((acc, item) => {
|
|
113
|
+
if (!abstractTypes.has(item)) {
|
|
114
|
+
const newTypes = new Set([...abstractTypes, item]);
|
|
115
|
+
acc.push(...abstractTypes, ...getSubTypes(resolvers, newTypes, item));
|
|
116
|
+
}
|
|
117
|
+
return acc;
|
|
118
|
+
}, []);
|
|
119
|
+
return new Set([...result]);
|
|
120
|
+
}
|
|
121
|
+
return abstractTypes;
|
|
94
122
|
}
|
|
95
123
|
function getFieldEntryKey(node) {
|
|
96
124
|
return node.alias ? node.alias.value : node.name.value;
|
package/lib/collectFields.mjs
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import {Kind} from "graphql";
|
|
3
3
|
import {getDirectiveValues} from "./values.mjs";
|
|
4
4
|
import {GraphQLSkipDirective, GraphQLIncludeDirective} from "./directives.mjs";
|
|
5
|
+
import {typeNameFromAST} from "./utilities/typeNameFromAST.mjs";
|
|
6
|
+
import {isUnionResolverType, isInterfaceResolverType} from "./definition.mjs";
|
|
5
7
|
function collectFields(resolvers, fragments, variableValues, runtimeTypeName, selectionSet, fields, visitedFragmentNames) {
|
|
6
8
|
for (const selection of selectionSet.selections) {
|
|
7
9
|
switch (selection.kind) {
|
|
@@ -19,7 +21,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
19
21
|
break;
|
|
20
22
|
}
|
|
21
23
|
case Kind.INLINE_FRAGMENT: {
|
|
22
|
-
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName)) {
|
|
24
|
+
if (!shouldIncludeNode(resolvers, variableValues, selection) || !doesFragmentConditionMatch(selection, runtimeTypeName, resolvers)) {
|
|
23
25
|
continue;
|
|
24
26
|
}
|
|
25
27
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, selection.selectionSet, fields, visitedFragmentNames);
|
|
@@ -32,7 +34,7 @@ function collectFields(resolvers, fragments, variableValues, runtimeTypeName, se
|
|
|
32
34
|
}
|
|
33
35
|
visitedFragmentNames.add(fragName);
|
|
34
36
|
const fragment = fragments[fragName];
|
|
35
|
-
if (!fragment || !doesFragmentConditionMatch(fragment, runtimeTypeName)) {
|
|
37
|
+
if (!fragment || !doesFragmentConditionMatch(fragment, runtimeTypeName, resolvers)) {
|
|
36
38
|
continue;
|
|
37
39
|
}
|
|
38
40
|
collectFields(resolvers, fragments, variableValues, runtimeTypeName, fragment.selectionSet, fields, visitedFragmentNames);
|
|
@@ -57,15 +59,41 @@ function shouldIncludeNode(resolvers, variableValues, node) {
|
|
|
57
59
|
}
|
|
58
60
|
return true;
|
|
59
61
|
}
|
|
60
|
-
function doesFragmentConditionMatch(fragment, typeName) {
|
|
62
|
+
function doesFragmentConditionMatch(fragment, typeName, resolvers) {
|
|
61
63
|
const typeConditionNode = fragment.typeCondition;
|
|
62
64
|
if (!typeConditionNode) {
|
|
63
65
|
return true;
|
|
64
66
|
}
|
|
65
|
-
|
|
67
|
+
const conditionalType = typeNameFromAST(typeConditionNode);
|
|
68
|
+
if (conditionalType === typeName) {
|
|
66
69
|
return true;
|
|
67
70
|
}
|
|
68
|
-
|
|
71
|
+
const subTypes = getSubTypes(resolvers, new Set(), conditionalType);
|
|
72
|
+
return subTypes.has(typeName);
|
|
73
|
+
}
|
|
74
|
+
function getSubTypes(resolvers, abstractTypes, conditionalType) {
|
|
75
|
+
const resolver = resolvers[conditionalType];
|
|
76
|
+
if (isInterfaceResolverType(resolver)) {
|
|
77
|
+
const result = resolver.__implementedBy.reduce((acc, item) => {
|
|
78
|
+
if (!abstractTypes.has(item)) {
|
|
79
|
+
const newTypes = new Set([...abstractTypes, item]);
|
|
80
|
+
acc.push(...abstractTypes, ...getSubTypes(resolvers, newTypes, item));
|
|
81
|
+
}
|
|
82
|
+
return acc;
|
|
83
|
+
}, []);
|
|
84
|
+
return new Set([...result]);
|
|
85
|
+
}
|
|
86
|
+
if (isUnionResolverType(resolver)) {
|
|
87
|
+
const result = resolver.__types.reduce((acc, item) => {
|
|
88
|
+
if (!abstractTypes.has(item)) {
|
|
89
|
+
const newTypes = new Set([...abstractTypes, item]);
|
|
90
|
+
acc.push(...abstractTypes, ...getSubTypes(resolvers, newTypes, item));
|
|
91
|
+
}
|
|
92
|
+
return acc;
|
|
93
|
+
}, []);
|
|
94
|
+
return new Set([...result]);
|
|
95
|
+
}
|
|
96
|
+
return abstractTypes;
|
|
69
97
|
}
|
|
70
98
|
function getFieldEntryKey(node) {
|
|
71
99
|
return node.alias ? node.alias.value : node.name.value;
|
package/lib/definition.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { GraphQLFieldConfigArgumentMap, GraphQLArgument } from "graphql";
|
|
2
|
+
import { Resolver, UnionTypeResolver, InterfaceTypeResolver } from "./types";
|
|
2
3
|
export declare function defineArguments(config: GraphQLFieldConfigArgumentMap): ReadonlyArray<GraphQLArgument>;
|
|
3
4
|
export declare function argsToArgsConfig(args: ReadonlyArray<GraphQLArgument>): GraphQLFieldConfigArgumentMap;
|
|
5
|
+
export declare function isInterfaceResolverType(resolver: Resolver<any, any>): resolver is InterfaceTypeResolver;
|
|
6
|
+
export declare function isUnionResolverType(resolver: Resolver<any, any>): resolver is UnionTypeResolver;
|
|
4
7
|
//# sourceMappingURL=definition.d.ts.map
|
package/lib/definition.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,6BAA6B,EAC7B,eAAe,EAChB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../src/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,6BAA6B,EAC7B,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAM7E,wBAAgB,eAAe,CAC7B,MAAM,EAAE,6BAA6B,GACpC,aAAa,CAAC,eAAe,CAAC,CAUhC;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,GACnC,6BAA6B,CAa/B;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,GAC3B,QAAQ,IAAI,qBAAqB,CAEnC;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,GAC3B,QAAQ,IAAI,iBAAiB,CAE/B"}
|
package/lib/definition.js
CHANGED
|
@@ -23,7 +23,9 @@ var __toModule = (module2) => {
|
|
|
23
23
|
__markAsModule(exports);
|
|
24
24
|
__export(exports, {
|
|
25
25
|
argsToArgsConfig: () => argsToArgsConfig,
|
|
26
|
-
defineArguments: () => defineArguments
|
|
26
|
+
defineArguments: () => defineArguments,
|
|
27
|
+
isInterfaceResolverType: () => isInterfaceResolverType,
|
|
28
|
+
isUnionResolverType: () => isUnionResolverType
|
|
27
29
|
});
|
|
28
30
|
var import_toObjMap = __toModule(require("./jsutils/toObjMap"));
|
|
29
31
|
var import_keyValMap = __toModule(require("./jsutils/keyValMap"));
|
|
@@ -48,3 +50,9 @@ function argsToArgsConfig(args) {
|
|
|
48
50
|
astNode: arg.astNode
|
|
49
51
|
}));
|
|
50
52
|
}
|
|
53
|
+
function isInterfaceResolverType(resolver) {
|
|
54
|
+
return "__implementedBy" in resolver && "__resolveType" in resolver;
|
|
55
|
+
}
|
|
56
|
+
function isUnionResolverType(resolver) {
|
|
57
|
+
return "__types" in resolver && "__resolveType" in resolver;
|
|
58
|
+
}
|
package/lib/definition.mjs
CHANGED
|
@@ -22,7 +22,15 @@ function argsToArgsConfig(args) {
|
|
|
22
22
|
astNode: arg.astNode
|
|
23
23
|
}));
|
|
24
24
|
}
|
|
25
|
+
function isInterfaceResolverType(resolver) {
|
|
26
|
+
return "__implementedBy" in resolver && "__resolveType" in resolver;
|
|
27
|
+
}
|
|
28
|
+
function isUnionResolverType(resolver) {
|
|
29
|
+
return "__types" in resolver && "__resolveType" in resolver;
|
|
30
|
+
}
|
|
25
31
|
export {
|
|
26
32
|
argsToArgsConfig,
|
|
27
|
-
defineArguments
|
|
33
|
+
defineArguments,
|
|
34
|
+
isInterfaceResolverType,
|
|
35
|
+
isUnionResolverType
|
|
28
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeWithSchema.d.ts","sourceRoot":"","sources":["../src/executeWithSchema.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,cAAc,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"executeWithSchema.d.ts","sourceRoot":"","sources":["../src/executeWithSchema.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,cAAc,CAAC,eAAe,CAAC,CAyB3D"}
|
package/lib/executeWithSchema.js
CHANGED
|
@@ -4,20 +4,6 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
10
|
-
var __objSpread = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
7
|
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
|
|
22
8
|
var __export = (target, all) => {
|
|
23
9
|
for (var name in all)
|
|
@@ -62,11 +48,11 @@ function executeWithSchema({
|
|
|
62
48
|
}
|
|
63
49
|
};
|
|
64
50
|
extractedResolvers = (0, import_index.extractImplicitTypes)(typeDefs, getTypeByName);
|
|
65
|
-
const fullResolvers = __objSpread(__objSpread({}, extractedResolvers), resolvers);
|
|
66
51
|
const document = (0, import_index.addTypesToRequestDocument)(schema, rawDocument);
|
|
67
52
|
return (0, import_index.executeWithoutSchema)({
|
|
68
53
|
document,
|
|
69
|
-
resolvers
|
|
54
|
+
resolvers,
|
|
55
|
+
schemaResolvers: extractedResolvers,
|
|
70
56
|
rootValue,
|
|
71
57
|
contextValue,
|
|
72
58
|
variableValues,
|