{"library":"graphql-codegen-apollo-next-ssr","type":"library","category":null,"description":"GraphQL Code Generator plugin for generating Apollo Client cache utilities and typed getServerSideProps in Next.js SSR. Current version 1.7.4, released 2022-05-12. Depends on graphql < 17.0.0. The plugin provides a typesafe getServerSideProps for each GraphQL query and a corresponding HOC to wrap the React component, avoiding multiple render passes required by getDataFromTree. The project is in maintenance mode and maintainer is needed; an alternative swr-gql solution is recommended. Key differentiator: it works with getServerSideProps (not getInitialProps) and generates cache read/write functions tailored for Apollo client integrations. Note: it uses the standard plugin configuration schema from graphql-codegen and outputs files with Apollo cache operations.","language":"javascript","status":"maintenance","version":"1.7.4","tags":["javascript","graphql","codegen","apollo-client","nextjs","grapgql-codegen"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install graphql-codegen-apollo-next-ssr","imports":["// plugin config in codegen.yml: plugins: - graphql-codegen-apollo-next-ssr","import { readUser, writeUser } from './generated/page'","plugins:\n  - graphql-codegen-apollo-next-ssr"]},{"cmd":"yarn add graphql-codegen-apollo-next-ssr","imports":[]},{"cmd":"pnpm add graphql-codegen-apollo-next-ssr","imports":[]}],"homepage":"https://github.com/correttojs/graphql-codegen-apollo-next-ssr#readme","github":"https://github.com/correttojs/graphql-codegen-apollo-next-ssr","docs":null,"changelog":null,"pypi":null,"npm":"graphql-codegen-apollo-next-ssr","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}