@graphql-mesh/runtime 0.46.11-alpha-20230214033834-6fa83ce80 → 0.46.12

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.
@@ -42,11 +42,14 @@ function getExecuteFn(subschema) {
42
42
  // TODO: We need more elegant solution
43
43
  const introspectionQueryType = getIntrospectionOperationType(operationAST);
44
44
  if (introspectionQueryType === IntrospectionQueryType.FEDERATION) {
45
- return {
46
- _service: {
47
- sdl: (0, utils_2.printSchemaWithDirectives)(args.schema),
45
+ const executionResult = {
46
+ data: {
47
+ _service: {
48
+ sdl: (0, utils_2.printSchemaWithDirectives)(args.schema),
49
+ },
48
50
  },
49
51
  };
52
+ return executionResult;
50
53
  }
51
54
  else if (introspectionQueryType === IntrospectionQueryType.REGULAR) {
52
55
  return (0, graphql_1.execute)(args);
@@ -39,11 +39,14 @@ function getExecuteFn(subschema) {
39
39
  // TODO: We need more elegant solution
40
40
  const introspectionQueryType = getIntrospectionOperationType(operationAST);
41
41
  if (introspectionQueryType === IntrospectionQueryType.FEDERATION) {
42
- return {
43
- _service: {
44
- sdl: printSchemaWithDirectives(args.schema),
42
+ const executionResult = {
43
+ data: {
44
+ _service: {
45
+ sdl: printSchemaWithDirectives(args.schema),
46
+ },
45
47
  },
46
48
  };
49
+ return executionResult;
47
50
  }
48
51
  else if (introspectionQueryType === IntrospectionQueryType.REGULAR) {
49
52
  return execute(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/runtime",
3
- "version": "0.46.11-alpha-20230214033834-6fa83ce80",
3
+ "version": "0.46.12",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
@@ -10,8 +10,8 @@
10
10
  "@envelop/extended-validation": "2.0.4",
11
11
  "@graphql-mesh/cross-helpers": "0.3.3",
12
12
  "@graphql-mesh/string-interpolation": "0.4.2",
13
- "@graphql-mesh/types": "0.91.3-alpha-20230214033834-6fa83ce80",
14
- "@graphql-mesh/utils": "0.43.11-alpha-20230214033834-6fa83ce80",
13
+ "@graphql-mesh/types": "0.91.3",
14
+ "@graphql-mesh/utils": "0.43.11",
15
15
  "@graphql-tools/batch-delegate": "8.4.20",
16
16
  "@graphql-tools/batch-execute": "8.5.18",
17
17
  "@graphql-tools/delegate": "9.0.27",