How to setup grapql(t3 stack) with typeschecking?
I want to use the @apollo/server and @apollo/client
7 Replies
I would say just set it up like you normally would in nextjs
https://www.apollographql.com/docs/apollo-server/integrations/integration-index
https://www.npmjs.com/package/@as-integrations/next
Apollo Docs
Apollo Server Integrations
npm
@as-integrations/next
An Apollo Server integration for use with Next.js. Latest version: 1.2.0, last published: 3 months ago. Start using @as-integrations/next in your project by running
npm i @as-integrations/next
. There is 1 other project in the npm registry using @as-integrations/next.I had looked at this
"t3 stack with graphql" is just nextjs
How i have setup my apollo server
src/server/apollo/client.tsx
Is there a way to get static type checking for typeDefs and resolvers?
Currently i have to open this and enter the gql and copy and paste into my client
@cje @erik.gh
It it because we can add and remove fields from therefore this method is not a good idea?