graphql-codegen-apollo-next-ssr
graphql-codegen-apollo-next-ssr copied to clipboard
contextType is added as import
Latest update generated the following line in my output file:
import { getApolloClient , any} from '~hooks/useApollo';
because the contextType is added as an import (which is wrong).
setting contextType: "" fixes that line but generates wrong syntax for other lines:
- (options: Omit<Apollo.QueryOptions<Types.CalculatorQueryVariables>, 'query'>, ctx?: any)
+ (options: Omit<Apollo.QueryOptions<Types.CalculatorQueryVariables>, 'query'>, ctx?: )
I made a change to address this earlier. https://github.com/correttojs/graphql-codegen-apollo-next-ssr/pull/258