- Run
npm install
- Update your schema in the
types/src/schema.graphql
file. - Add your operations/queries/mutations in the
types/src/queries
folder as.graphql
files (follow the example there). - Run
npm run build --workspace=types
- Start the GraphQL server using
npm run start --workspace=server
- Start the React server with
npm run dev --workspace=frontend
If you have any problems with dependencies not updating, you can re-install the types package with npm install @bts-schema-sharing-demo/types --workspace=server
or npm install @bts-schema-sharing-demo/types --workspace=frontend