Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.32 KB

Users Dashboard

Check out the demo: users-dashboard

p.s. The theme is picked based on system preferences but can be changed.

Installation

npm install

Trying it out

npm run schema
npm run types
npm start

Scripts

npm run schema

Executing npm run schema in terminal will run the following command

apollo client:download-schema --endpoint=https://uyx9x.sse.codesandbox.io ./src/schema.json

It will download a remote schema and save it as schema.json inside ./src/ directory.

To see detailed explanation of what each flag does - please refer to official documentation on apollo client:download

npm run types

Executing npm run types in terminal will run the following command

apollo client:codegen ./src/__generated__/types.ts --outputFlat --includes=./src/**/queries.ts --addTypename --localSchemaFile=./src/schema.json --target=typescript

It will generate types based on ./src/schema.json and place them in ./src/__generated__/types.ts.

To see detailed explanation of what each flag does - please refer to official documentation on apollo client:codegen