├── .babelrc ├── .gitignore ├── .prettierrc.js ├── README.md ├── next-env.d.ts ├── package.json ├── schema ├── schema.graphql └── schema.json ├── scripts └── generateSchema.ts ├── src ├── __generated__ │ └── pagesQuery.graphql.ts ├── graphql │ ├── common │ │ └── types.ts │ ├── interface │ │ └── NodeInterface.ts │ ├── loaders │ │ ├── dataloaders.ts │ │ └── middleware.ts │ ├── modules │ │ └── user │ │ │ ├── UserLoader.ts │ │ │ ├── UserModel.ts │ │ │ ├── UserType.ts │ │ │ └── mock.ts │ ├── schema.ts │ └── type │ │ └── QueryType.ts ├── pages │ ├── _app.tsx │ ├── api │ │ └── graphql.ts │ └── index.tsx └── relay │ ├── environment.ts │ └── withQuery.tsx ├── tsconfig.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/README.md -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/package.json -------------------------------------------------------------------------------- /schema/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/schema/schema.graphql -------------------------------------------------------------------------------- /schema/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/schema/schema.json -------------------------------------------------------------------------------- /scripts/generateSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/scripts/generateSchema.ts -------------------------------------------------------------------------------- /src/__generated__/pagesQuery.graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/__generated__/pagesQuery.graphql.ts -------------------------------------------------------------------------------- /src/graphql/common/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/common/types.ts -------------------------------------------------------------------------------- /src/graphql/interface/NodeInterface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/interface/NodeInterface.ts -------------------------------------------------------------------------------- /src/graphql/loaders/dataloaders.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/loaders/dataloaders.ts -------------------------------------------------------------------------------- /src/graphql/loaders/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/loaders/middleware.ts -------------------------------------------------------------------------------- /src/graphql/modules/user/UserLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/modules/user/UserLoader.ts -------------------------------------------------------------------------------- /src/graphql/modules/user/UserModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/modules/user/UserModel.ts -------------------------------------------------------------------------------- /src/graphql/modules/user/UserType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/modules/user/UserType.ts -------------------------------------------------------------------------------- /src/graphql/modules/user/mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/modules/user/mock.ts -------------------------------------------------------------------------------- /src/graphql/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/schema.ts -------------------------------------------------------------------------------- /src/graphql/type/QueryType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/graphql/type/QueryType.ts -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/pages/api/graphql.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/relay/environment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/relay/environment.ts -------------------------------------------------------------------------------- /src/relay/withQuery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/src/relay/withQuery.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsasouza/nextjs-relay-ssg/HEAD/yarn.lock --------------------------------------------------------------------------------