@graphql-tools/executor-common
Advanced tools
Comparing version 0.0.0 to 0.0.1-alpha-3b389697135636c2837d6a66f7f263834c015e18
@@ -10,3 +10,3 @@ import { ExecutionRequest } from '@graphql-tools/utils'; | ||
} | ||
interface GraphQLParams { | ||
interface SerializedExecutionRequest { | ||
query?: string | undefined; | ||
@@ -17,12 +17,12 @@ variables?: Record<string, any>; | ||
} | ||
declare function executionRequestToGraphQLParams(opts: Omit<ExecutionRequestToGraphQLParams, 'excludeQuery'> & { | ||
declare function serializeExecutionRequest(opts: Omit<ExecutionRequestToGraphQLParams, 'excludeQuery'> & { | ||
excludeQuery: true; | ||
}): Omit<GraphQLParams, 'query'>; | ||
declare function executionRequestToGraphQLParams(opts: Omit<ExecutionRequestToGraphQLParams, 'excludeQuery'> & { | ||
}): Omit<SerializedExecutionRequest, 'query'>; | ||
declare function serializeExecutionRequest(opts: Omit<ExecutionRequestToGraphQLParams, 'excludeQuery'> & { | ||
excludeQuery?: false; | ||
}): Omit<GraphQLParams, 'query'> & { | ||
}): Omit<SerializedExecutionRequest, 'query'> & { | ||
query: string; | ||
}; | ||
declare function executionRequestToGraphQLParams(opts: ExecutionRequestToGraphQLParams): GraphQLParams; | ||
declare function serializeExecutionRequest(opts: ExecutionRequestToGraphQLParams): SerializedExecutionRequest; | ||
export { type GraphQLParams, defaultPrintFn, executionRequestToGraphQLParams }; | ||
export { type SerializedExecutionRequest, defaultPrintFn, serializeExecutionRequest }; |
@@ -8,3 +8,3 @@ import { getDocumentString } from '@envelop/core'; | ||
}); | ||
function executionRequestToGraphQLParams({ | ||
function serializeExecutionRequest({ | ||
executionRequest, | ||
@@ -22,2 +22,2 @@ excludeQuery, | ||
export { defaultPrintFn, executionRequestToGraphQLParams }; | ||
export { defaultPrintFn, serializeExecutionRequest }; |
{ | ||
"name": "@graphql-tools/executor-common", | ||
"version": "0.0.0", | ||
"version": "0.0.1-alpha-3b389697135636c2837d6a66f7f263834c015e18", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A set of utils for faster development of GraphQL tools", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7237
6