Skip to content

December 24, 2024

Compare
Choose a tag to compare
@theguild-bot theguild-bot released this 24 Dec 09:22
· 64 commits to master since this release
88acc96

@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 is GatewayConfigContext which has config
    etc as optional, but the old type of the plugin options was MeshPluginOptions which expects
    cache, pubsub etc and more things that are not available in GatewayConfigContext.

    import { defineConfig, useHttpCache } from '@graphql-hive/gateway'
    
    export const gatewayConfig = defineConfig({
      plugins: ctx => [
        useHttpCache({
          ...ctx // This was failing
        })
      ]
    })