@graphql-mesh/cli@0.75.7
Patch Changes
- Updated dependencies [
760a60483
]:- @graphql-mesh/runtime@0.41.7
@graphql-mesh/container@0.1.130
Patch Changes
- Updated dependencies [
be784e653
,be784e653
,31fc25974
,760a60483
]:- @graphql-mesh/openapi@0.30.0
- @graphql-mesh/json-schema@0.31.0
- @graphql-mesh/runtime@0.41.7
- @graphql-mesh/cli@0.75.7
@graphql-mesh/json-schema@0.31.0
Minor Changes
-
#4247
31fc25974
Thanks @ardatan! - Accept a code file foroperationHeaders
Now you can generate headers dynamically from the resolver data dynamically like below;
operationHeaders: ./myOperationHeaders.ts
And in
myOperationHeaders.ts
export default function myOperationHeaders({ context }: ResolverData) { const someToken = context.request.headers.get("some-token"); const anotherToken = await someLogicThatReturnsAnotherToken(someToken); return { "x-bar-token": anotherToken }; }
Patch Changes
@graphql-mesh/new-openapi@0.6.0
Minor Changes
-
#4247
31fc25974
Thanks @ardatan! - Accept a code file foroperationHeaders
Now you can generate headers dynamically from the resolver data dynamically like below;
operationHeaders: ./myOperationHeaders.ts
And in
myOperationHeaders.ts
export default function myOperationHeaders({ context }: ResolverData) { const someToken = context.request.headers.get("some-token"); const anotherToken = await someLogicThatReturnsAnotherToken(someToken); return { "x-bar-token": anotherToken }; }
Patch Changes
@graphql-mesh/openapi@0.30.0
Minor Changes
Patch Changes
- #4262
be784e653
Thanks @ardatan! - Refactor runtime expression handling in OpenAPI & JSON Schema handlers
@graphql-mesh/raml@0.4.11
Patch Changes
- Updated dependencies []:
- @omnigraph/raml@0.5.63
@omnigraph/json-schema@0.26.0
Minor Changes
-
#4262
be784e653
Thanks @ardatan! - Handle callbacks as GraphQL Subscriptions -
#4247
31fc25974
Thanks @ardatan! - Accept a code file foroperationHeaders
Now you can generate headers dynamically from the resolver data dynamically like below;
operationHeaders: ./myOperationHeaders.ts
And in
myOperationHeaders.ts
export default function myOperationHeaders({ context }: ResolverData) { const someToken = context.request.headers.get("some-token"); const anotherToken = await someLogicThatReturnsAnotherToken(someToken); return { "x-bar-token": anotherToken }; }
Patch Changes
- #4262
be784e653
Thanks @ardatan! - Refactor runtime expression handling in OpenAPI & JSON Schema handlers
@omnigraph/openapi@0.8.0
Minor Changes
-
#4262
be784e653
Thanks @ardatan! - Handle callbacks as GraphQL Subscriptions -
#4247
31fc25974
Thanks @ardatan! - Accept a code file foroperationHeaders
Now you can generate headers dynamically from the resolver data dynamically like below;
operationHeaders: ./myOperationHeaders.ts
And in
myOperationHeaders.ts
export default function myOperationHeaders({ context }: ResolverData) { const someToken = context.request.headers.get("some-token"); const anotherToken = await someLogicThatReturnsAnotherToken(someToken); return { "x-bar-token": anotherToken }; }
Patch Changes
-
#4262
be784e653
Thanks @ardatan! - Refactor runtime expression handling in OpenAPI & JSON Schema handlers -
Updated dependencies [
be784e653
,be784e653
,31fc25974
]:- @omnigraph/json-schema@0.26.0