1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const apollo_graphql_1 = require("apollo-graphql");
|
4 | function 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 | }
|
17 | exports.getOperationManifestFromProject = getOperationManifestFromProject;
|
18 |
|
\ | No newline at end of file |