Skip to content

Commit

Permalink
Fix missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Nov 25, 2024
1 parent 80d3aae commit 6360755
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/wet-cars-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-mesh/runtime': patch
'@graphql-mesh/utils': patch
---

Fix missing import
2 changes: 1 addition & 1 deletion packages/legacy/runtime/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const MESH_CONTEXT_SYMBOL = Symbol('isMeshContext');
export const MESH_API_CONTEXT_SYMBOL = Symbol('isMeshAPIContext');
export { MESH_API_CONTEXT_SYMBOL } from '@graphql-mesh/utils';
2 changes: 1 addition & 1 deletion packages/legacy/runtime/src/get-mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
applySchemaTransforms,
DefaultLogger,
getHeadersObj,
getInContextSDK,
groupTransforms,
makeDisposable,
mapMaybePromise,
Expand All @@ -40,7 +41,6 @@ import {
} from '@graphql-tools/utils';
import { wrapSchema } from '@graphql-tools/wrap';
import { fetch as defaultFetchFn } from '@whatwg-node/fetch';
import { getInContextSDK } from '../../utils/src/in-context-sdk.js';
import { MESH_CONTEXT_SYMBOL } from './constants.js';
import type { ExecuteMeshFn, GetMeshOptions, MeshExecutor, SubscribeMeshFn } from './types.js';
import { getOriginalError } from './utils.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/legacy/runtime/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './get-mesh.js';
export type * from './types.js';
export { getInContextSDK } from '@graphql-mesh/utils';
export { getInContextSDK, MESH_API_CONTEXT_SYMBOL } from '@graphql-mesh/utils';
3 changes: 2 additions & 1 deletion packages/legacy/utils/src/in-context-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ import {
memoize1,
} from '@graphql-tools/utils';
import { WrapQuery } from '@graphql-tools/wrap';
import { MESH_API_CONTEXT_SYMBOL } from '../../runtime/src/constants.js';
import { iterateAsync } from './iterateAsync.js';
import { parseWithCache } from './parseAndPrintWithCache.js';

export const MESH_API_CONTEXT_SYMBOL = Symbol('isMeshAPIContext');

export function getInContextSDK(
unifiedSchema: GraphQLSchema,
rawSources: RawSourceOutput[],
Expand Down

0 comments on commit 6360755

Please sign in to comment.