UNPKG

773 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const apollo_graphql_1 = require("apollo-graphql");
4function getOperationManifestFromProject(project) {
5 const manifest = Object.entries(project.mergedOperationsAndFragmentsForService).map(([operationName, operationAST]) => {
6 const printed = apollo_graphql_1.defaultOperationRegistrySignature(operationAST, operationName);
7 return {
8 signature: apollo_graphql_1.operationHash(printed),
9 document: printed,
10 metadata: {
11 engineSignature: ""
12 }
13 };
14 });
15 return manifest;
16}
17exports.getOperationManifestFromProject = getOperationManifestFromProject;
18//# sourceMappingURL=getOperationManifestFromProject.js.map
\No newline at end of file