This library provides an swr wrapper which allows to run type-safe gql requests. It consists of
- a Graphql
fetcherfor direct requests (i.e. on ssr) - a react
hookwrapping swr
Both the hook and the fetcher accept a TypedDocumentNode generated by gql codegen