Hi,
I’m working on migrating from gateway to router. I have router working at the moment with basic configuration, but I’m working on migrating some of our existing Apollo Server constructor configuration.
We were passing in the following parameters to ApolloServer:
csrfPrevention: true,
persistedQueries: false,
cache: 'bounded',
formatError: formatError
Questions:
- Can you confirm that csrlPrevention is set to true by default, so there’s no need to explicitly name it?
- Is there a way to migrate persistedQueries and cache: bounded to Router?
- We were also using “formatError” to pass in a custom error formatting function. Is there a way to migrate that to Router?
Thanks,
TS