December 24, 2024
theguild-bot
released this
24 Dec 09:22
·
64 commits
to master
since this release
@graphql-mesh/[email protected]
Patch Changes
-
#8162
a278925
Thanks @ardatan! - Relax the typings so the plugin can be used as
GatewayPlugin
.The pointed line was previously failing because
ctx
isGatewayConfigContext
which hasconfig
etc as optional, but the old type of the plugin options wasMeshPluginOptions
which expects
cache
,pubsub
etc and more things that are not available inGatewayConfigContext
.import { defineConfig, useHttpCache } from '@graphql-hive/gateway' export const gatewayConfig = defineConfig({ plugins: ctx => [ useHttpCache({ ...ctx // This was failing }) ] })