newrelic / newrelic-node-apollo-server-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not supported in @apollo/server@4.5.0

rezoled opened this issue · comments

Description

Updated apollo server to version 4.5.0, new relic apollo plugin throws type errors:
TS2560: Value of type '<T>(config?: NRPluginConfig) => T' has no properties in common with type 'ApolloServerPlugin<any>'. Did you mean to call it?

Expected Behavior

It sould not throw type error

Troubleshooting or NR Diag results

Steps to Reproduce

With latest version of apollo and newrelic:

import { ApolloServer } from '@apollo/server';
import apolloNewRelic from '@newrelic/apollo-server-plugin';

const server = new ApolloServer({
  typeDefs: '',
  resolvers: [],
  plugins: [apolloNewRelic],
});

Your Environment

  • ex: Browser name and version:
  • ex: Node version:
  • ex: Operating System and version:

Additional context

We now have to disable the plugin since it blocks us from upgrading apollo server

Sorry, didn't see the specific documentation for apollo@4