@graphitation/supermassive 0.7.2 → 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 +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/benchmarks/index.js +13 -0
- package/lib/benchmarks/index.mjs +19 -1
- package/lib/benchmarks/swapi-schema/__generated__/schema.d.ts +2 -25
- package/lib/benchmarks/swapi-schema/__generated__/schema.d.ts.map +1 -1
- package/lib/executeWithSchema.d.ts.map +1 -1
- package/lib/executeWithSchema.js +2 -3
- package/lib/executeWithSchema.mjs +2 -3
- package/lib/executeWithoutSchema.d.ts.map +1 -1
- package/lib/executeWithoutSchema.js +4 -1
- package/lib/executeWithoutSchema.mjs +4 -1
- package/lib/extractImplicitTypesToTypescript.d.ts.map +1 -1
- package/lib/extractImplicitTypesToTypescript.js +45 -25
- package/lib/extractImplicitTypesToTypescript.mjs +45 -25
- 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 +14 -3
- package/lib/types.d.ts.map +1 -1
- package/lib/utilities/mergeResolvers.d.ts +2 -2
- package/lib/utilities/mergeResolvers.d.ts.map +1 -1
- 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/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":6135,"mtime":1644225077956,"results":"56","hashOfConfig":"57"},{"size":3872,"mtime":1644225077956,"results":"58","hashOfConfig":"57"},{"size":7030,"mtime":1644225077956,"results":"59","hashOfConfig":"57"},{"size":14345,"mtime":1644225077956,"results":"60","hashOfConfig":"57"},{"size":5297,"mtime":1644225077956,"results":"61","hashOfConfig":"57"},{"size":2189,"mtime":1644225077956,"results":"62","hashOfConfig":"57"},{"size":3146,"mtime":1644225077956,"results":"63","hashOfConfig":"57"},{"size":712,"mtime":1644225077956,"results":"64","hashOfConfig":"57"},{"size":382,"mtime":1644225077956,"results":"65","hashOfConfig":"57"},{"size":128,"mtime":1644225077956,"results":"66","hashOfConfig":"57"},{"size":10233,"mtime":1644225077956,"results":"67","hashOfConfig":"57"},{"size":848,"mtime":1644225077960,"results":"68","hashOfConfig":"57"},{"size":1654,"mtime":1644225077960,"results":"69","hashOfConfig":"57"},{"size":5387,"mtime":1644225077960,"results":"70","hashOfConfig":"57"},{"size":3431,"mtime":1644225077960,"results":"71","hashOfConfig":"57"},{"size":1649,"mtime":1644225077960,"results":"72","hashOfConfig":"57"},{"size":6589,"mtime":1644225077960,"results":"73","hashOfConfig":"57"},{"size":1372,"mtime":1644225077960,"results":"74","hashOfConfig":"57"},{"size":28058,"mtime":1644225077960,"results":"75","hashOfConfig":"57"},{"size":4918,"mtime":1644225077960,"results":"76","hashOfConfig":"57"},{"size":11995,"mtime":1644225077960,"results":"77","hashOfConfig":"57"},{"size":1595,"mtime":1644225077960,"results":"78","hashOfConfig":"57"},{"size":134,"mtime":1644225077960,"results":"79","hashOfConfig":"57"},{"size":277,"mtime":1644225077960,"results":"80","hashOfConfig":"57"},{"size":711,"mtime":1644225077960,"results":"81","hashOfConfig":"57"},{"size":48,"mtime":1644225077960,"results":"82","hashOfConfig":"57"},{"size":269,"mtime":1644225077960,"results":"83","hashOfConfig":"57"},{"size":1038,"mtime":1644225077960,"results":"84","hashOfConfig":"57"},{"size":108,"mtime":1644225077960,"results":"85","hashOfConfig":"57"},{"size":2797,"mtime":1644225077960,"results":"86","hashOfConfig":"57"},{"size":2294,"mtime":1644225077960,"results":"87","hashOfConfig":"57"},{"size":357,"mtime":1644225077960,"results":"88","hashOfConfig":"57"},{"size":325,"mtime":1644225077960,"results":"89","hashOfConfig":"57"},{"size":778,"mtime":1644225077960,"results":"90","hashOfConfig":"57"},{"size":278,"mtime":1644225077960,"results":"91","hashOfConfig":"57"},{"size":227,"mtime":1644225077960,"results":"92","hashOfConfig":"57"},{"size":921,"mtime":1644225077960,"results":"93","hashOfConfig":"57"},{"size":764,"mtime":1644225077960,"results":"94","hashOfConfig":"57"},{"size":441,"mtime":1644225077960,"results":"95","hashOfConfig":"57"},{"size":821,"mtime":1644225077960,"results":"96","hashOfConfig":"57"},{"size":1314,"mtime":1644225077960,"results":"97","hashOfConfig":"57"},{"size":253,"mtime":1644225077960,"results":"98","hashOfConfig":"57"},{"size":650,"mtime":1644225077960,"results":"99","hashOfConfig":"57"},{"size":803,"mtime":1644225077960,"results":"100","hashOfConfig":"57"},{"size":3938,"mtime":1644225077960,"results":"101","hashOfConfig":"57"},{"size":503,"mtime":1644225077960,"results":"102","hashOfConfig":"57"},{"size":1364,"mtime":1644225077960,"results":"103","hashOfConfig":"57"},{"size":8936,"mtime":1644225077960,"results":"104","hashOfConfig":"57"},{"size":495,"mtime":1644225077960,"results":"105","hashOfConfig":"57"},{"size":6652,"mtime":1644225077960,"results":"106","hashOfConfig":"57"},{"size":3878,"mtime":1644225077960,"results":"107","hashOfConfig":"57"},{"size":1815,"mtime":1644225077960,"results":"108","hashOfConfig":"57"},{"size":766,"mtime":1644225077960,"results":"109","hashOfConfig":"57"},{"size":308,"mtime":1644225077960,"results":"110","hashOfConfig":"57"},{"size":9318,"mtime":1644225077960,"results":"111","hashOfConfig":"57"},{"filePath":"112","messages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"f884pq",{"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",[]]
|
|
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,22 @@
|
|
|
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",
|
|
6
21
|
"tag": "@graphitation/supermassive_v0.7.2",
|
|
7
22
|
"version": "0.7.2",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
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
|
+
|
|
7
15
|
## 0.7.2
|
|
8
16
|
|
|
9
|
-
Mon, 07 Feb 2022 09:13:
|
|
17
|
+
Mon, 07 Feb 2022 09:13:38 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
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
|
});
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const resolvers:
|
|
3
|
-
SearchResult: {
|
|
4
|
-
__types: string[];
|
|
5
|
-
__resolveType: undefined;
|
|
6
|
-
};
|
|
7
|
-
NodeType: GraphQLEnumType;
|
|
8
|
-
Subscription: {};
|
|
9
|
-
Query: {};
|
|
10
|
-
Node: {
|
|
11
|
-
__implementedBy: string[];
|
|
12
|
-
__resolveType: undefined;
|
|
13
|
-
};
|
|
14
|
-
Alive: {
|
|
15
|
-
__types: string[];
|
|
16
|
-
__resolveType: undefined;
|
|
17
|
-
};
|
|
18
|
-
Film: {};
|
|
19
|
-
Vehicle: {};
|
|
20
|
-
Person: {};
|
|
21
|
-
Starship: {};
|
|
22
|
-
Planet: {};
|
|
23
|
-
Species: {};
|
|
24
|
-
Transport: {};
|
|
25
|
-
};
|
|
1
|
+
import { Resolvers } from "@graphitation/supermassive";
|
|
2
|
+
export declare const resolvers: Resolvers;
|
|
26
3
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/benchmarks/swapi-schema/__generated__/schema.ts"],"names":[],"mappings":"
|
|
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":"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;
|
|
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
|
@@ -26,7 +26,6 @@ __export(exports, {
|
|
|
26
26
|
});
|
|
27
27
|
var import_graphql = __toModule(require("graphql"));
|
|
28
28
|
var import_index = __toModule(require("./index"));
|
|
29
|
-
var import_mergeResolvers = __toModule(require("./utilities/mergeResolvers"));
|
|
30
29
|
function executeWithSchema({
|
|
31
30
|
typeDefs,
|
|
32
31
|
resolvers,
|
|
@@ -49,11 +48,11 @@ function executeWithSchema({
|
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
50
|
extractedResolvers = (0, import_index.extractImplicitTypes)(typeDefs, getTypeByName);
|
|
52
|
-
const fullResolvers = (0, import_mergeResolvers.mergeResolvers)(resolvers, extractedResolvers);
|
|
53
51
|
const document = (0, import_index.addTypesToRequestDocument)(schema, rawDocument);
|
|
54
52
|
return (0, import_index.executeWithoutSchema)({
|
|
55
53
|
document,
|
|
56
|
-
resolvers
|
|
54
|
+
resolvers,
|
|
55
|
+
schemaResolvers: extractedResolvers,
|
|
57
56
|
rootValue,
|
|
58
57
|
contextValue,
|
|
59
58
|
variableValues,
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
extractImplicitTypes,
|
|
7
7
|
specifiedScalars
|
|
8
8
|
} from "./index.mjs";
|
|
9
|
-
import {mergeResolvers} from "./utilities/mergeResolvers.mjs";
|
|
10
9
|
function executeWithSchema({
|
|
11
10
|
typeDefs,
|
|
12
11
|
resolvers,
|
|
@@ -29,11 +28,11 @@ function executeWithSchema({
|
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
30
|
extractedResolvers = extractImplicitTypes(typeDefs, getTypeByName);
|
|
32
|
-
const fullResolvers = mergeResolvers(resolvers, extractedResolvers);
|
|
33
31
|
const document = addTypesToRequestDocument(schema, rawDocument);
|
|
34
32
|
return executeWithoutSchema({
|
|
35
33
|
document,
|
|
36
|
-
resolvers
|
|
34
|
+
resolvers,
|
|
35
|
+
schemaResolvers: extractedResolvers,
|
|
37
36
|
rootValue,
|
|
38
37
|
contextValue,
|
|
39
38
|
variableValues,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeWithoutSchema.d.ts","sourceRoot":"","sources":["../src/executeWithoutSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EASb,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAQxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,E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BAAgB,wBAAwB,CACtC,SAAS,EAAE,uBAAuB,GAAG,2BAA2B,GAC/D,MAAM,CASR"}
|
|
@@ -42,11 +42,13 @@ var import_Path = __toModule(require("./jsutils/Path"));
|
|
|
42
42
|
var import_promiseForObject = __toModule(require("./jsutils/promiseForObject"));
|
|
43
43
|
var import_promiseReduce = __toModule(require("./jsutils/promiseReduce"));
|
|
44
44
|
var import_definition = __toModule(require("./definition"));
|
|
45
|
+
var import_mergeResolvers = __toModule(require("./utilities/mergeResolvers"));
|
|
45
46
|
var import_typeNameFromAST = __toModule(require("./utilities/typeNameFromAST"));
|
|
46
47
|
var import_values = __toModule(require("./values"));
|
|
47
48
|
function executeWithoutSchema(args) {
|
|
48
49
|
const {
|
|
49
50
|
resolvers,
|
|
51
|
+
schemaResolvers,
|
|
50
52
|
document,
|
|
51
53
|
rootValue,
|
|
52
54
|
contextValue,
|
|
@@ -55,8 +57,9 @@ function executeWithoutSchema(args) {
|
|
|
55
57
|
fieldResolver,
|
|
56
58
|
typeResolver
|
|
57
59
|
} = args;
|
|
60
|
+
const combinedResolvers = (0, import_mergeResolvers.mergeResolvers)(resolvers, schemaResolvers);
|
|
58
61
|
assertValidExecutionArguments(document, variableValues);
|
|
59
|
-
const exeContext = buildExecutionContext(
|
|
62
|
+
const exeContext = buildExecutionContext(combinedResolvers, document, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver);
|
|
60
63
|
if (!("resolvers" in exeContext)) {
|
|
61
64
|
return {errors: exeContext};
|
|
62
65
|
} else {
|
|
@@ -19,6 +19,7 @@ import {addPath, pathToArray} from "./jsutils/Path.mjs";
|
|
|
19
19
|
import {promiseForObject} from "./jsutils/promiseForObject.mjs";
|
|
20
20
|
import {promiseReduce} from "./jsutils/promiseReduce.mjs";
|
|
21
21
|
import {isUnionResolverType, isInterfaceResolverType} from "./definition.mjs";
|
|
22
|
+
import {mergeResolvers} from "./utilities/mergeResolvers.mjs";
|
|
22
23
|
import {typeNameFromAST} from "./utilities/typeNameFromAST.mjs";
|
|
23
24
|
import {
|
|
24
25
|
getArgumentValues,
|
|
@@ -28,6 +29,7 @@ import {
|
|
|
28
29
|
function executeWithoutSchema(args) {
|
|
29
30
|
const {
|
|
30
31
|
resolvers,
|
|
32
|
+
schemaResolvers,
|
|
31
33
|
document,
|
|
32
34
|
rootValue,
|
|
33
35
|
contextValue,
|
|
@@ -36,8 +38,9 @@ function executeWithoutSchema(args) {
|
|
|
36
38
|
fieldResolver,
|
|
37
39
|
typeResolver
|
|
38
40
|
} = args;
|
|
41
|
+
const combinedResolvers = mergeResolvers(resolvers, schemaResolvers);
|
|
39
42
|
assertValidExecutionArguments(document, variableValues);
|
|
40
|
-
const exeContext = buildExecutionContext(
|
|
43
|
+
const exeContext = buildExecutionContext(combinedResolvers, document, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver);
|
|
41
44
|
if (!("resolvers" in exeContext)) {
|
|
42
45
|
return {errors: exeContext};
|
|
43
46
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractImplicitTypesToTypescript.d.ts","sourceRoot":"","sources":["../src/extractImplicitTypesToTypescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,YAAY,EAab,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"extractImplicitTypesToTypescript.d.ts","sourceRoot":"","sources":["../src/extractImplicitTypesToTypescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,YAAY,EAab,MAAM,SAAS,CAAC;AAmBjB,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,YAAY,GACrB,EAAE,CAAC,UAAU,CA8Jf"}
|
|
@@ -33,10 +33,18 @@ const SPECIFIED_SCALARS = {
|
|
|
33
33
|
Float: "GraphQLFloat",
|
|
34
34
|
Boolean: "GraphQLBoolean"
|
|
35
35
|
};
|
|
36
|
+
const SUPERMASSIVE_TYPES = {
|
|
37
|
+
INTERFACE_TYPE_RESOLVER: "InterfaceTypeResolver",
|
|
38
|
+
UNION_TYPE_RESOLVER: "UnionTypeResolver",
|
|
39
|
+
OBJECT_TYPE_RESOLVER: "ObjectTypeResolver",
|
|
40
|
+
ENUM_TYPE_RESOLVER: "EnumTypeResolver",
|
|
41
|
+
SCALAR_TYPE_RESOLVER: "ScalarTypeResolver",
|
|
42
|
+
INPUT_OBJECT_TYPE_RESOLVER: "InputObjectTypeResolver"
|
|
43
|
+
};
|
|
36
44
|
function extractImplicitTypesToTypescript(document) {
|
|
37
45
|
var _a, _b;
|
|
38
46
|
const definitions = [];
|
|
39
|
-
const
|
|
47
|
+
const graphQLImports = [
|
|
40
48
|
"GraphQLList",
|
|
41
49
|
"GraphQLNonNull",
|
|
42
50
|
"GraphQLID",
|
|
@@ -45,30 +53,36 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
45
53
|
"GraphQLFloat",
|
|
46
54
|
"GraphQLBoolean"
|
|
47
55
|
];
|
|
56
|
+
const supermassiveImports = ["Resolvers"];
|
|
48
57
|
const identifiers = [];
|
|
49
58
|
const implementedBy = {};
|
|
50
59
|
const interfaceAstNodes = [];
|
|
51
60
|
for (let astNode of document.definitions) {
|
|
52
61
|
if (astNode.kind === import_graphql.Kind.SCALAR_TYPE_DEFINITION) {
|
|
53
62
|
definitions.push(createScalarType(astNode));
|
|
54
|
-
addToSetArray(
|
|
63
|
+
addToSetArray(graphQLImports, "GraphQLScalarType");
|
|
64
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.SCALAR_TYPE_RESOLVER);
|
|
55
65
|
addToSetArray(identifiers, astNode.name.value);
|
|
56
66
|
} else if (astNode.kind === import_graphql.Kind.INPUT_OBJECT_TYPE_DEFINITION) {
|
|
57
67
|
definitions.push(createInputObjectType(astNode));
|
|
58
|
-
addToSetArray(
|
|
68
|
+
addToSetArray(graphQLImports, "GraphQLInputObjectType");
|
|
69
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.INPUT_OBJECT_TYPE_RESOLVER);
|
|
59
70
|
addToSetArray(identifiers, astNode.name.value);
|
|
60
71
|
} else if (astNode.kind === import_graphql.Kind.ENUM_TYPE_DEFINITION) {
|
|
61
72
|
definitions.push(createEnumType(astNode));
|
|
62
|
-
addToSetArray(
|
|
73
|
+
addToSetArray(graphQLImports, "GraphQLEnumType");
|
|
74
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.ENUM_TYPE_RESOLVER);
|
|
63
75
|
addToSetArray(identifiers, astNode.name.value);
|
|
64
76
|
} else if (astNode.kind === import_graphql.Kind.INTERFACE_TYPE_DEFINITION) {
|
|
65
77
|
interfaceAstNodes.push(astNode);
|
|
78
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.INTERFACE_TYPE_RESOLVER);
|
|
66
79
|
addToSetArray(identifiers, astNode.name.value);
|
|
67
80
|
} else if (astNode.kind === import_graphql.Kind.UNION_TYPE_DEFINITION) {
|
|
68
81
|
const types = (_a = astNode.types) == null ? void 0 : _a.map((typeNode) => {
|
|
69
82
|
return typeNode.name.value;
|
|
70
83
|
});
|
|
71
|
-
definitions.push(
|
|
84
|
+
definitions.push(createUnionType(astNode, types || []));
|
|
85
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.UNION_TYPE_RESOLVER);
|
|
72
86
|
addToSetArray(identifiers, astNode.name.value);
|
|
73
87
|
} else if (astNode.kind === import_graphql.Kind.OBJECT_TYPE_DEFINITION) {
|
|
74
88
|
(_b = astNode.interfaces) == null ? void 0 : _b.forEach((node) => {
|
|
@@ -78,6 +92,7 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
78
92
|
implementedBy[node.name.value].push(astNode.name.value);
|
|
79
93
|
});
|
|
80
94
|
definitions.push(createObjectType(astNode));
|
|
95
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.OBJECT_TYPE_RESOLVER);
|
|
81
96
|
addToSetArray(identifiers, astNode.name.value);
|
|
82
97
|
}
|
|
83
98
|
}
|
|
@@ -85,17 +100,23 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
85
100
|
if (!implementedBy[astNode.name.value]) {
|
|
86
101
|
implementedBy[astNode.name.value] = [];
|
|
87
102
|
}
|
|
88
|
-
definitions.push(
|
|
103
|
+
definitions.push(createInterfaceType(astNode, implementedBy[astNode.name.value]));
|
|
89
104
|
});
|
|
90
|
-
const
|
|
105
|
+
const graphQLImportDefinition = import_typescript.factory.createImportDeclaration(void 0, void 0, import_typescript.factory.createImportClause(false, void 0, import_typescript.factory.createNamedImports(graphQLImports.map((imp) => import_typescript.factory.createImportSpecifier(void 0, import_typescript.factory.createIdentifier(imp))))), import_typescript.factory.createStringLiteral("graphql"));
|
|
106
|
+
const supermassiveImportDefinition = import_typescript.factory.createImportDeclaration(void 0, void 0, import_typescript.factory.createImportClause(false, void 0, import_typescript.factory.createNamedImports(supermassiveImports.map((imp) => import_typescript.factory.createImportSpecifier(void 0, import_typescript.factory.createIdentifier(imp))))), import_typescript.factory.createStringLiteral("@graphitation/supermassive"));
|
|
91
107
|
const exportDefinition = import_typescript.factory.createVariableStatement([import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createVariableDeclarationList([
|
|
92
|
-
import_typescript.factory.createVariableDeclaration(import_typescript.factory.createIdentifier("resolvers"), void 0, void 0, import_typescript.factory.createObjectLiteralExpression(identifiers.map((def) => import_typescript.factory.createShorthandPropertyAssignment(import_typescript.factory.createIdentifier(def), void 0))))
|
|
108
|
+
import_typescript.factory.createVariableDeclaration(import_typescript.factory.createIdentifier("resolvers"), void 0, import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("Resolvers"), void 0), import_typescript.factory.createObjectLiteralExpression(identifiers.map((def) => import_typescript.factory.createShorthandPropertyAssignment(import_typescript.factory.createIdentifier(def), void 0))))
|
|
93
109
|
], import_typescript.default.NodeFlags.Const));
|
|
94
|
-
return import_typescript.factory.createSourceFile([
|
|
110
|
+
return import_typescript.factory.createSourceFile([
|
|
111
|
+
graphQLImportDefinition,
|
|
112
|
+
supermassiveImportDefinition,
|
|
113
|
+
...definitions,
|
|
114
|
+
exportDefinition
|
|
115
|
+
], import_typescript.factory.createToken(import_typescript.default.SyntaxKind.EndOfFileToken), 0);
|
|
95
116
|
}
|
|
96
|
-
function createDeclaration(name, decl) {
|
|
117
|
+
function createDeclaration(name, decl, typeReferenceNode) {
|
|
97
118
|
return import_typescript.factory.createVariableStatement(void 0, import_typescript.factory.createVariableDeclarationList([
|
|
98
|
-
import_typescript.factory.createVariableDeclaration(import_typescript.factory.createIdentifier(name), void 0,
|
|
119
|
+
import_typescript.factory.createVariableDeclaration(import_typescript.factory.createIdentifier(name), void 0, typeReferenceNode, decl)
|
|
99
120
|
], import_typescript.default.NodeFlags.Const));
|
|
100
121
|
}
|
|
101
122
|
function createScalarType(astNode) {
|
|
@@ -105,7 +126,7 @@ function createScalarType(astNode) {
|
|
|
105
126
|
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("name"), import_typescript.factory.createStringLiteral(astNode.name.value)),
|
|
106
127
|
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("description"), import_typescript.factory.createStringLiteral(((_a = astNode.description) == null ? void 0 : _a.value) || ""))
|
|
107
128
|
], true)
|
|
108
|
-
]));
|
|
129
|
+
]), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.SCALAR_TYPE_RESOLVER), void 0));
|
|
109
130
|
}
|
|
110
131
|
function createInputObjectType(astNode) {
|
|
111
132
|
var _a;
|
|
@@ -115,7 +136,7 @@ function createInputObjectType(astNode) {
|
|
|
115
136
|
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("description"), import_typescript.factory.createStringLiteral(((_a = astNode.description) == null ? void 0 : _a.value) || "")),
|
|
116
137
|
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("fields"), import_typescript.factory.createArrowFunction(void 0, void 0, [], void 0, import_typescript.factory.createToken(import_typescript.default.SyntaxKind.EqualsGreaterThanToken), import_typescript.factory.createParenthesizedExpression(import_typescript.factory.createObjectLiteralExpression(createInputFields(astNode.fields || []), true))))
|
|
117
138
|
], true)
|
|
118
|
-
]));
|
|
139
|
+
]), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.INPUT_OBJECT_TYPE_RESOLVER), void 0));
|
|
119
140
|
}
|
|
120
141
|
function createInputFields(astNodes) {
|
|
121
142
|
return astNodes.map((astNode) => {
|
|
@@ -143,23 +164,22 @@ function createEnumType(astNode) {
|
|
|
143
164
|
]));
|
|
144
165
|
})))
|
|
145
166
|
])
|
|
146
|
-
]));
|
|
167
|
+
]), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.ENUM_TYPE_RESOLVER), void 0));
|
|
147
168
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
169
|
+
function createUnionType(astNode, types) {
|
|
170
|
+
return createDeclaration(astNode.name.value, import_typescript.factory.createObjectLiteralExpression([
|
|
171
|
+
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("__types"), import_typescript.factory.createArrayLiteralExpression(types.map((value) => import_typescript.factory.createStringLiteral(value)))),
|
|
172
|
+
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("__resolveType"), import_typescript.factory.createIdentifier("undefined"))
|
|
173
|
+
]), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.UNION_TYPE_RESOLVER), void 0));
|
|
174
|
+
}
|
|
175
|
+
function createInterfaceType(astNode, implementedBy) {
|
|
156
176
|
return createDeclaration(astNode.name.value, import_typescript.factory.createObjectLiteralExpression([
|
|
157
|
-
|
|
177
|
+
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("__implementedBy"), import_typescript.factory.createArrayLiteralExpression(implementedBy.map((value) => import_typescript.factory.createStringLiteral(value)))),
|
|
158
178
|
import_typescript.factory.createPropertyAssignment(import_typescript.factory.createIdentifier("__resolveType"), import_typescript.factory.createIdentifier("undefined"))
|
|
159
|
-
]));
|
|
179
|
+
]), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.INTERFACE_TYPE_RESOLVER), void 0));
|
|
160
180
|
}
|
|
161
181
|
function createObjectType(astNode) {
|
|
162
|
-
return createDeclaration(astNode.name.value, import_typescript.factory.createObjectLiteralExpression());
|
|
182
|
+
return createDeclaration(astNode.name.value, import_typescript.factory.createObjectLiteralExpression(), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier(SUPERMASSIVE_TYPES.OBJECT_TYPE_RESOLVER), void 0));
|
|
163
183
|
}
|
|
164
184
|
function createType(astNode) {
|
|
165
185
|
if (astNode.kind === import_graphql.Kind.LIST_TYPE) {
|
|
@@ -10,10 +10,18 @@ var SPECIFIED_SCALARS = {
|
|
|
10
10
|
Float: "GraphQLFloat",
|
|
11
11
|
Boolean: "GraphQLBoolean"
|
|
12
12
|
};
|
|
13
|
+
var SUPERMASSIVE_TYPES = {
|
|
14
|
+
INTERFACE_TYPE_RESOLVER: "InterfaceTypeResolver",
|
|
15
|
+
UNION_TYPE_RESOLVER: "UnionTypeResolver",
|
|
16
|
+
OBJECT_TYPE_RESOLVER: "ObjectTypeResolver",
|
|
17
|
+
ENUM_TYPE_RESOLVER: "EnumTypeResolver",
|
|
18
|
+
SCALAR_TYPE_RESOLVER: "ScalarTypeResolver",
|
|
19
|
+
INPUT_OBJECT_TYPE_RESOLVER: "InputObjectTypeResolver"
|
|
20
|
+
};
|
|
13
21
|
function extractImplicitTypesToTypescript(document) {
|
|
14
22
|
var _a, _b;
|
|
15
23
|
const definitions = [];
|
|
16
|
-
const
|
|
24
|
+
const graphQLImports = [
|
|
17
25
|
"GraphQLList",
|
|
18
26
|
"GraphQLNonNull",
|
|
19
27
|
"GraphQLID",
|
|
@@ -22,30 +30,36 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
22
30
|
"GraphQLFloat",
|
|
23
31
|
"GraphQLBoolean"
|
|
24
32
|
];
|
|
33
|
+
const supermassiveImports = ["Resolvers"];
|
|
25
34
|
const identifiers = [];
|
|
26
35
|
const implementedBy = {};
|
|
27
36
|
const interfaceAstNodes = [];
|
|
28
37
|
for (let astNode of document.definitions) {
|
|
29
38
|
if (astNode.kind === Kind.SCALAR_TYPE_DEFINITION) {
|
|
30
39
|
definitions.push(createScalarType(astNode));
|
|
31
|
-
addToSetArray(
|
|
40
|
+
addToSetArray(graphQLImports, "GraphQLScalarType");
|
|
41
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.SCALAR_TYPE_RESOLVER);
|
|
32
42
|
addToSetArray(identifiers, astNode.name.value);
|
|
33
43
|
} else if (astNode.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION) {
|
|
34
44
|
definitions.push(createInputObjectType(astNode));
|
|
35
|
-
addToSetArray(
|
|
45
|
+
addToSetArray(graphQLImports, "GraphQLInputObjectType");
|
|
46
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.INPUT_OBJECT_TYPE_RESOLVER);
|
|
36
47
|
addToSetArray(identifiers, astNode.name.value);
|
|
37
48
|
} else if (astNode.kind === Kind.ENUM_TYPE_DEFINITION) {
|
|
38
49
|
definitions.push(createEnumType(astNode));
|
|
39
|
-
addToSetArray(
|
|
50
|
+
addToSetArray(graphQLImports, "GraphQLEnumType");
|
|
51
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.ENUM_TYPE_RESOLVER);
|
|
40
52
|
addToSetArray(identifiers, astNode.name.value);
|
|
41
53
|
} else if (astNode.kind === Kind.INTERFACE_TYPE_DEFINITION) {
|
|
42
54
|
interfaceAstNodes.push(astNode);
|
|
55
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.INTERFACE_TYPE_RESOLVER);
|
|
43
56
|
addToSetArray(identifiers, astNode.name.value);
|
|
44
57
|
} else if (astNode.kind === Kind.UNION_TYPE_DEFINITION) {
|
|
45
58
|
const types = (_a = astNode.types) == null ? void 0 : _a.map((typeNode) => {
|
|
46
59
|
return typeNode.name.value;
|
|
47
60
|
});
|
|
48
|
-
definitions.push(
|
|
61
|
+
definitions.push(createUnionType(astNode, types || []));
|
|
62
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.UNION_TYPE_RESOLVER);
|
|
49
63
|
addToSetArray(identifiers, astNode.name.value);
|
|
50
64
|
} else if (astNode.kind === Kind.OBJECT_TYPE_DEFINITION) {
|
|
51
65
|
(_b = astNode.interfaces) == null ? void 0 : _b.forEach((node) => {
|
|
@@ -55,6 +69,7 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
55
69
|
implementedBy[node.name.value].push(astNode.name.value);
|
|
56
70
|
});
|
|
57
71
|
definitions.push(createObjectType(astNode));
|
|
72
|
+
addToSetArray(supermassiveImports, SUPERMASSIVE_TYPES.OBJECT_TYPE_RESOLVER);
|
|
58
73
|
addToSetArray(identifiers, astNode.name.value);
|
|
59
74
|
}
|
|
60
75
|
}
|
|
@@ -62,17 +77,23 @@ function extractImplicitTypesToTypescript(document) {
|
|
|
62
77
|
if (!implementedBy[astNode.name.value]) {
|
|
63
78
|
implementedBy[astNode.name.value] = [];
|
|
64
79
|
}
|
|
65
|
-
definitions.push(
|
|
80
|
+
definitions.push(createInterfaceType(astNode, implementedBy[astNode.name.value]));
|
|
66
81
|
});
|
|
67
|
-
const
|
|
82
|
+
const graphQLImportDefinition = factory.createImportDeclaration(void 0, void 0, factory.createImportClause(false, void 0, factory.createNamedImports(graphQLImports.map((imp) => factory.createImportSpecifier(void 0, factory.createIdentifier(imp))))), factory.createStringLiteral("graphql"));
|
|
83
|
+
const supermassiveImportDefinition = factory.createImportDeclaration(void 0, void 0, factory.createImportClause(false, void 0, factory.createNamedImports(supermassiveImports.map((imp) => factory.createImportSpecifier(void 0, factory.createIdentifier(imp))))), factory.createStringLiteral("@graphitation/supermassive"));
|
|
68
84
|
const exportDefinition = factory.createVariableStatement([factory.createModifier(ts.SyntaxKind.ExportKeyword)], factory.createVariableDeclarationList([
|
|
69
|
-
factory.createVariableDeclaration(factory.createIdentifier("resolvers"), void 0, void 0, factory.createObjectLiteralExpression(identifiers.map((def) => factory.createShorthandPropertyAssignment(factory.createIdentifier(def), void 0))))
|
|
85
|
+
factory.createVariableDeclaration(factory.createIdentifier("resolvers"), void 0, factory.createTypeReferenceNode(factory.createIdentifier("Resolvers"), void 0), factory.createObjectLiteralExpression(identifiers.map((def) => factory.createShorthandPropertyAssignment(factory.createIdentifier(def), void 0))))
|
|
70
86
|
], ts.NodeFlags.Const));
|
|
71
|
-
return factory.createSourceFile([
|
|
87
|
+
return factory.createSourceFile([
|
|
88
|
+
graphQLImportDefinition,
|
|
89
|
+
supermassiveImportDefinition,
|
|
90
|
+
...definitions,
|
|
91
|
+
exportDefinition
|
|
92
|
+
], factory.createToken(ts.SyntaxKind.EndOfFileToken), 0);
|
|
72
93
|
}
|
|
73
|
-
function createDeclaration(name, decl) {
|
|
94
|
+
function createDeclaration(name, decl, typeReferenceNode) {
|
|
74
95
|
return factory.createVariableStatement(void 0, factory.createVariableDeclarationList([
|
|
75
|
-
factory.createVariableDeclaration(factory.createIdentifier(name), void 0,
|
|
96
|
+
factory.createVariableDeclaration(factory.createIdentifier(name), void 0, typeReferenceNode, decl)
|
|
76
97
|
], ts.NodeFlags.Const));
|
|
77
98
|
}
|
|
78
99
|
function createScalarType(astNode) {
|
|
@@ -82,7 +103,7 @@ function createScalarType(astNode) {
|
|
|
82
103
|
factory.createPropertyAssignment(factory.createIdentifier("name"), factory.createStringLiteral(astNode.name.value)),
|
|
83
104
|
factory.createPropertyAssignment(factory.createIdentifier("description"), factory.createStringLiteral(((_a = astNode.description) == null ? void 0 : _a.value) || ""))
|
|
84
105
|
], true)
|
|
85
|
-
]));
|
|
106
|
+
]), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.SCALAR_TYPE_RESOLVER), void 0));
|
|
86
107
|
}
|
|
87
108
|
function createInputObjectType(astNode) {
|
|
88
109
|
var _a;
|
|
@@ -92,7 +113,7 @@ function createInputObjectType(astNode) {
|
|
|
92
113
|
factory.createPropertyAssignment(factory.createIdentifier("description"), factory.createStringLiteral(((_a = astNode.description) == null ? void 0 : _a.value) || "")),
|
|
93
114
|
factory.createPropertyAssignment(factory.createIdentifier("fields"), factory.createArrowFunction(void 0, void 0, [], void 0, factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), factory.createParenthesizedExpression(factory.createObjectLiteralExpression(createInputFields(astNode.fields || []), true))))
|
|
94
115
|
], true)
|
|
95
|
-
]));
|
|
116
|
+
]), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.INPUT_OBJECT_TYPE_RESOLVER), void 0));
|
|
96
117
|
}
|
|
97
118
|
function createInputFields(astNodes) {
|
|
98
119
|
return astNodes.map((astNode) => {
|
|
@@ -120,23 +141,22 @@ function createEnumType(astNode) {
|
|
|
120
141
|
]));
|
|
121
142
|
})))
|
|
122
143
|
])
|
|
123
|
-
]));
|
|
144
|
+
]), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.ENUM_TYPE_RESOLVER), void 0));
|
|
124
145
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
146
|
+
function createUnionType(astNode, types) {
|
|
147
|
+
return createDeclaration(astNode.name.value, factory.createObjectLiteralExpression([
|
|
148
|
+
factory.createPropertyAssignment(factory.createIdentifier("__types"), factory.createArrayLiteralExpression(types.map((value) => factory.createStringLiteral(value)))),
|
|
149
|
+
factory.createPropertyAssignment(factory.createIdentifier("__resolveType"), factory.createIdentifier("undefined"))
|
|
150
|
+
]), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.UNION_TYPE_RESOLVER), void 0));
|
|
151
|
+
}
|
|
152
|
+
function createInterfaceType(astNode, implementedBy) {
|
|
133
153
|
return createDeclaration(astNode.name.value, factory.createObjectLiteralExpression([
|
|
134
|
-
|
|
154
|
+
factory.createPropertyAssignment(factory.createIdentifier("__implementedBy"), factory.createArrayLiteralExpression(implementedBy.map((value) => factory.createStringLiteral(value)))),
|
|
135
155
|
factory.createPropertyAssignment(factory.createIdentifier("__resolveType"), factory.createIdentifier("undefined"))
|
|
136
|
-
]));
|
|
156
|
+
]), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.INTERFACE_TYPE_RESOLVER), void 0));
|
|
137
157
|
}
|
|
138
158
|
function createObjectType(astNode) {
|
|
139
|
-
return createDeclaration(astNode.name.value, factory.createObjectLiteralExpression());
|
|
159
|
+
return createDeclaration(astNode.name.value, factory.createObjectLiteralExpression(), factory.createTypeReferenceNode(factory.createIdentifier(SUPERMASSIVE_TYPES.OBJECT_TYPE_RESOLVER), void 0));
|
|
140
160
|
}
|
|
141
161
|
function createType(astNode) {
|
|
142
162
|
if (astNode.kind === Kind.LIST_TYPE) {
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { executeWithoutSchema } from "./executeWithoutSchema";
|
|
|
2
2
|
export { executeWithSchema } from "./executeWithSchema";
|
|
3
3
|
export { subscribeWithSchema } from "./subscribeWithSchema";
|
|
4
4
|
export { subscribeWithoutSchema } from "./subscribeWithoutSchema";
|
|
5
|
-
export type { Resolvers } from "./types";
|
|
5
|
+
export type { ObjectTypeResolver, InterfaceTypeResolver, UnionTypeResolver, ScalarTypeResolver, EnumTypeResolver, InputObjectTypeResolver, Resolvers, } from "./types";
|
|
6
6
|
export { addTypesToRequestDocument } from "./ast/addTypesToRequestDocument";
|
|
7
7
|
export { extractImplicitTypes } from "./extractImplicitTypesRuntime";
|
|
8
8
|
export { specifiedScalars } from "./values";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,EACvB,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeWithSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithSchema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,OAAO,CAClC,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,eAAe,CAC9D,
|
|
1
|
+
{"version":3,"file":"subscribeWithSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithSchema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,eAAe,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,SAAS,EACT,QAAQ,EAAE,WAAW,EACrB,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,GACb,EAAE,uBAAuB,GAAG,OAAO,CAClC,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,eAAe,CAC9D,CA0BA"}
|
|
@@ -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 subscribeWithSchema({
|
|
|
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.subscribeWithoutSchema)({
|
|
68
53
|
document,
|
|
69
|
-
resolvers
|
|
54
|
+
resolvers,
|
|
55
|
+
schemaResolvers: extractedResolvers,
|
|
70
56
|
rootValue,
|
|
71
57
|
contextValue,
|
|
72
58
|
variableValues,
|
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|
6
|
-
var __objSpread = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
1
|
// src/subscribeWithSchema.ts
|
|
19
2
|
import {isInputType, buildASTSchema} from "graphql";
|
|
20
3
|
import {
|
|
@@ -45,11 +28,11 @@ function subscribeWithSchema({
|
|
|
45
28
|
}
|
|
46
29
|
};
|
|
47
30
|
extractedResolvers = extractImplicitTypes(typeDefs, getTypeByName);
|
|
48
|
-
const fullResolvers = __objSpread(__objSpread({}, extractedResolvers), resolvers);
|
|
49
31
|
const document = addTypesToRequestDocument(schema, rawDocument);
|
|
50
32
|
return subscribeWithoutSchema({
|
|
51
33
|
document,
|
|
52
|
-
resolvers
|
|
34
|
+
resolvers,
|
|
35
|
+
schemaResolvers: extractedResolvers,
|
|
53
36
|
rootValue,
|
|
54
37
|
contextValue,
|
|
55
38
|
variableValues,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribeWithoutSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithoutSchema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"subscribeWithoutSchema.d.ts","sourceRoot":"","sources":["../src/subscribeWithoutSchema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAQ7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiB9C,OAAO,EAEL,qBAAqB,EACrB,0BAA0B,EAE1B,SAAS,EACT,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,eAAe,CAAC,CAiDxE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,uBAAuB,CAC3C,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,OAAO,EACnB,YAAY,CAAC,EAAE,OAAO,EACtB,cAAc,CAAC,EAAE,KAAK,CAAC;IAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,EAChE,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAC7B,aAAa,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,GACrD,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,CAyCnD"}
|
|
@@ -53,11 +53,13 @@ var import_executeWithoutSchema = __toModule(require("./executeWithoutSchema"));
|
|
|
53
53
|
var import_collectFields = __toModule(require("./collectFields"));
|
|
54
54
|
var import_values = __toModule(require("./values"));
|
|
55
55
|
var import_typeNameFromAST = __toModule(require("./utilities/typeNameFromAST"));
|
|
56
|
+
var import_mergeResolvers = __toModule(require("./utilities/mergeResolvers"));
|
|
56
57
|
var import_mapAsyncIterator = __toModule(require("./utilities/mapAsyncIterator"));
|
|
57
58
|
function subscribeWithoutSchema(args) {
|
|
58
59
|
return __async(this, null, function* () {
|
|
59
60
|
const {
|
|
60
61
|
resolvers,
|
|
62
|
+
schemaResolvers,
|
|
61
63
|
document,
|
|
62
64
|
rootValue,
|
|
63
65
|
contextValue,
|
|
@@ -66,12 +68,14 @@ function subscribeWithoutSchema(args) {
|
|
|
66
68
|
fieldResolver,
|
|
67
69
|
subscribeFieldResolver
|
|
68
70
|
} = args;
|
|
69
|
-
const
|
|
71
|
+
const combinedResolvers = (0, import_mergeResolvers.mergeResolvers)(resolvers, schemaResolvers);
|
|
72
|
+
const resultOrStream = yield createSourceEventStream(combinedResolvers, document, rootValue, contextValue, variableValues, operationName, subscribeFieldResolver);
|
|
70
73
|
if (!(0, import_isAsyncIterable.isAsyncIterable)(resultOrStream)) {
|
|
71
74
|
return resultOrStream;
|
|
72
75
|
}
|
|
73
76
|
const mapSourceToResponse = (payload) => (0, import_executeWithoutSchema.executeWithoutSchema)({
|
|
74
77
|
resolvers,
|
|
78
|
+
schemaResolvers,
|
|
75
79
|
document,
|
|
76
80
|
rootValue: payload,
|
|
77
81
|
contextValue,
|
|
@@ -38,11 +38,13 @@ import {
|
|
|
38
38
|
import {collectFields} from "./collectFields.mjs";
|
|
39
39
|
import {getArgumentValues} from "./values.mjs";
|
|
40
40
|
import {typeNameFromAST} from "./utilities/typeNameFromAST.mjs";
|
|
41
|
+
import {mergeResolvers} from "./utilities/mergeResolvers.mjs";
|
|
41
42
|
import {mapAsyncIterator} from "./utilities/mapAsyncIterator.mjs";
|
|
42
43
|
function subscribeWithoutSchema(args) {
|
|
43
44
|
return __async(this, null, function* () {
|
|
44
45
|
const {
|
|
45
46
|
resolvers,
|
|
47
|
+
schemaResolvers,
|
|
46
48
|
document,
|
|
47
49
|
rootValue,
|
|
48
50
|
contextValue,
|
|
@@ -51,12 +53,14 @@ function subscribeWithoutSchema(args) {
|
|
|
51
53
|
fieldResolver,
|
|
52
54
|
subscribeFieldResolver
|
|
53
55
|
} = args;
|
|
54
|
-
const
|
|
56
|
+
const combinedResolvers = mergeResolvers(resolvers, schemaResolvers);
|
|
57
|
+
const resultOrStream = yield createSourceEventStream(combinedResolvers, document, rootValue, contextValue, variableValues, operationName, subscribeFieldResolver);
|
|
55
58
|
if (!isAsyncIterable(resultOrStream)) {
|
|
56
59
|
return resultOrStream;
|
|
57
60
|
}
|
|
58
61
|
const mapSourceToResponse = (payload) => executeWithoutSchema({
|
|
59
62
|
resolvers,
|
|
63
|
+
schemaResolvers,
|
|
60
64
|
document,
|
|
61
65
|
rootValue: payload,
|
|
62
66
|
contextValue,
|
package/lib/types.d.ts
CHANGED
|
@@ -16,18 +16,28 @@ export declare type ObjectTypeResolver<TSource = any, TContext = any, TArgs = an
|
|
|
16
16
|
[key: string]: FieldResolver<TSource, TContext, TArgs>;
|
|
17
17
|
};
|
|
18
18
|
export declare type InterfaceTypeResolver<TSource = any, TContext = any, TArgs = any> = {
|
|
19
|
-
|
|
19
|
+
__implementedBy: string[];
|
|
20
|
+
[key: string]: FieldResolver<TSource, TContext, TArgs> | string[] | undefined;
|
|
20
21
|
} & {
|
|
21
22
|
__resolveType?: TypeResolver<any, any>;
|
|
22
|
-
__implementedBy: string[];
|
|
23
23
|
};
|
|
24
24
|
export declare type UnionTypeResolver = {
|
|
25
25
|
__resolveType?: TypeResolver<any, any>;
|
|
26
26
|
__types: string[];
|
|
27
27
|
};
|
|
28
|
+
export declare type UserInterfaceTypeResolver<TSource = any, TContext = any, TArgs = any> = {
|
|
29
|
+
[key: string]: FieldResolver<TSource, TContext, TArgs>;
|
|
30
|
+
} & {
|
|
31
|
+
__resolveType?: TypeResolver<any, any>;
|
|
32
|
+
};
|
|
33
|
+
export declare type UserUnionTypeResolver = {
|
|
34
|
+
__resolveType?: TypeResolver<any, any>;
|
|
35
|
+
};
|
|
28
36
|
export declare type InputObjectTypeResolver = GraphQLInputObjectType;
|
|
37
|
+
export declare type UserResolver<TSource, TContext> = ObjectTypeResolver<TSource, TContext> | UserInterfaceTypeResolver<TSource, TContext> | UserUnionTypeResolver | ScalarTypeResolver | EnumTypeResolver | InputObjectTypeResolver;
|
|
29
38
|
export declare type Resolver<TSource, TContext> = ObjectTypeResolver<TSource, TContext> | InterfaceTypeResolver<TSource, TContext> | UnionTypeResolver | ScalarTypeResolver | EnumTypeResolver | InputObjectTypeResolver;
|
|
30
39
|
export declare type Resolvers<TSource = any, TContext = any> = Record<string, Resolver<TSource, TContext>>;
|
|
40
|
+
export declare type UserResolvers<TSource = any, TContext = any> = Record<string, UserResolver<TSource, TContext>>;
|
|
31
41
|
export interface ResolveInfo {
|
|
32
42
|
fieldName: string;
|
|
33
43
|
fieldNodes: Array<FieldNode>;
|
|
@@ -60,7 +70,7 @@ export interface FormattedExecutionResult<TData = ObjMap<unknown>, TExtensions =
|
|
|
60
70
|
extensions?: TExtensions;
|
|
61
71
|
}
|
|
62
72
|
export interface CommonExecutionArgs {
|
|
63
|
-
resolvers:
|
|
73
|
+
resolvers: UserResolvers;
|
|
64
74
|
rootValue?: unknown;
|
|
65
75
|
contextValue?: unknown;
|
|
66
76
|
variableValues?: Maybe<{
|
|
@@ -73,6 +83,7 @@ export interface CommonExecutionArgs {
|
|
|
73
83
|
}
|
|
74
84
|
export declare type ExecutionWithoutSchemaArgs = CommonExecutionArgs & {
|
|
75
85
|
document: DocumentNode;
|
|
86
|
+
schemaResolvers: Resolvers;
|
|
76
87
|
};
|
|
77
88
|
export declare type ExecutionWithSchemaArgs = CommonExecutionArgs & {
|
|
78
89
|
document: UntypedDocumentNode;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,YAAY,EACZ,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;IAC9B,aAAa,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7C,sBAAsB,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;CACjE;AACD,oBAAY,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D,QAAQ,EAAE,YAAY,CAAC;IACvB,eAAe,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,uBAAuB,GAAG,mBAAmB,GAAG;IAC1D,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,QAAQ,EAAE,mBAAmB,CAAC;CAC/B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function mergeResolvers(resolvers:
|
|
1
|
+
import { UserResolvers, Resolvers } from "../types";
|
|
2
|
+
export declare function mergeResolvers(resolvers: UserResolvers<any, any>, extractedResolvers: Resolvers): Resolvers<any, any>;
|
|
3
3
|
//# sourceMappingURL=mergeResolvers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeResolvers.d.ts","sourceRoot":"","sources":["../../src/utilities/mergeResolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mergeResolvers.d.ts","sourceRoot":"","sources":["../../src/utilities/mergeResolvers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAY,MAAM,UAAU,CAAC;AAE9D,wBAAgB,cAAc,CAC5B,SAAS,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,EAClC,kBAAkB,EAAE,SAAS,uBAsB9B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphitation/supermassive",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"supermassive": "./bin/supermassive.js"
|
|
7
7
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "monorepo-scripts build",
|
|
16
16
|
"lint": "monorepo-scripts lint",
|
|
17
|
-
"test": "supermassive extract-schema ./src/benchmarks/swapi-schema/schema.graphql && monorepo-scripts test",
|
|
17
|
+
"test": "./bin/supermassive.js extract-schema ./src/benchmarks/swapi-schema/schema.graphql && monorepo-scripts test",
|
|
18
18
|
"types": "monorepo-scripts types",
|
|
19
19
|
"just": "monorepo-scripts",
|
|
20
20
|
"benchmark": "ts-node -T ./src/benchmarks/index.ts"
|