Skip to content

Commit

Permalink
debug gen schema json
Browse files Browse the repository at this point in the history
  • Loading branch information
NanezX committed Dec 6, 2023
1 parent a40f2ef commit b9d46cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subgraph/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,16 @@

generate-sg-schema = pkgs.writeShellScriptBin "generate-sg-schema" (''
${rain-cli} subgraph build
${rain-cli} subgraph deploy --endpoint http://localhost:8020 --subgraph-name "test/test"
${graphql-client} introspect-schema --output tests/utils/subgraph/wait/schema.json http://localhost:8030/graphql
${graphql-client} introspect-schema --output tests/utils/subgraph/query/schema.json http://localhost:8000/subgraphs/name/test/test
# debug the content
echo $(ls .)
cat tests/utils/subgraph/query/schema.json | ${jq} .
cat tests/utils/subgraph/wait/schema.json| ${jq} .
'');

default = rain_cli;
Expand Down

0 comments on commit b9d46cb

Please sign in to comment.