├── .babelrc ├── .env ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── codegen.yml ├── jest.setup.ts ├── next-env.d.ts ├── package.json ├── pages ├── _app.tsx ├── api │ └── hello.ts ├── graphqlmutation.tsx ├── graphqlquery.tsx └── index.tsx ├── public ├── favicon.ico └── vercel.svg ├── src ├── components │ ├── AuthorsList.tsx │ └── BooksByAuthorList.tsx ├── generated │ └── graphql.ts ├── graphql │ ├── CreateAuthorMutation.graphql │ ├── GetAllAuthorsQuery.graphql │ ├── GetAllBooksQuery.graphql │ └── GetBooksByAuthor.graphql └── lib │ ├── clients │ └── graphqlRequestClient.ts │ └── interfaces │ └── IBook.ts ├── styles ├── Home.module.css └── globals.css ├── tsconfig.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_GRAPHQL_ENDPOINT=http://localhost:4000/graphql -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .next -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /codegen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/codegen.yml -------------------------------------------------------------------------------- /jest.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/jest.setup.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/pages/api/hello.ts -------------------------------------------------------------------------------- /pages/graphqlmutation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/pages/graphqlmutation.tsx -------------------------------------------------------------------------------- /pages/graphqlquery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/pages/graphqlquery.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/components/AuthorsList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/components/AuthorsList.tsx -------------------------------------------------------------------------------- /src/components/BooksByAuthorList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/components/BooksByAuthorList.tsx -------------------------------------------------------------------------------- /src/generated/graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/generated/graphql.ts -------------------------------------------------------------------------------- /src/graphql/CreateAuthorMutation.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/graphql/CreateAuthorMutation.graphql -------------------------------------------------------------------------------- /src/graphql/GetAllAuthorsQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/graphql/GetAllAuthorsQuery.graphql -------------------------------------------------------------------------------- /src/graphql/GetAllBooksQuery.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/graphql/GetAllBooksQuery.graphql -------------------------------------------------------------------------------- /src/graphql/GetBooksByAuthor.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/graphql/GetBooksByAuthor.graphql -------------------------------------------------------------------------------- /src/lib/clients/graphqlRequestClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/lib/clients/graphqlRequestClient.ts -------------------------------------------------------------------------------- /src/lib/interfaces/IBook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/src/lib/interfaces/IBook.ts -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leoroese/reactquery-ts-graphqlrequest-tutorial/HEAD/yarn.lock --------------------------------------------------------------------------------