como-web/scripts/refresh:schema.sh
kjuulh 36e2766bb9
feat: add feature slicing
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-06-05 12:54:07 +02:00

13 lines
426 B
Bash
Executable File

#!/bin/bash
graphql-client introspect-schema \
http://localhost:3001/graphql \
--header "Authorization: Basic $COMO_GATEWAY_PAT" \
--output src/api/graphql/schema/schema.json
graphql-client generate \
--schema-path src/api/graphql/schema/schema.json \
src/features/navbar_projects/graphql/queries.graphql \
--output-directory src/features/navbar_projects/gen \
--custom-scalars-module='crate::common::graphql'