Added graphql

This commit is contained in:
2022-08-20 22:29:54 +02:00
parent 94986d336e
commit 476816a5d9
27 changed files with 3414 additions and 409 deletions

12
src/pages/_app.tsx Normal file
View File

@@ -0,0 +1,12 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { useApollo } from '../lib/graphql/apollo'
import { ApolloProvider } from '@apollo/client'
function MyApp({ Component, pageProps }: AppProps) {
const apolloClient = useApollo(pageProps.initialApolloState)
return <ApolloProvider client={apolloClient}><Component {...pageProps} /></ApolloProvider>
}
export default MyApp