Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugin-build-binary:

plugin-compose:
pnpx tsx --env-file ../cli/.env ../cli/src/index.ts router compose -i ./graph-with-plugin.yaml -o ./configWithPlugins.json
pnpx prettier ./configWithPlugins.json -w

plugin-build-integration: plugin-build plugin-compose
rm -rf ../router/plugins/*
Expand All @@ -29,4 +30,8 @@ plugin-build-ci: plugin-build-binary
cp -a pkg/subgraphs/projects/bin/* ../router/plugins/projects/bin/

standalone-compose:
pnpx tsx --env-file ../cli/.env ../cli/src/index.ts router compose -i ./graph-with-standalone.yaml -o ./configWithStandalone.json
pnpx tsx --env-file ../cli/.env ../cli/src/index.ts router compose -i ./graph-with-standalone.yaml -o ./configWithStandalone.json
pnpx prettier ./configWithStandalone.json -w

standalone-integration: standalone-compose
mv ./configWithStandalone.json ../router-tests/testenv/testdata/configWithGRPC.json
17 changes: 17 additions & 0 deletions demo/pkg/subgraphs/projects/generated/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@
"request": "QueryPanicRequest",
"response": "QueryPanicResponse"
},
{
"type": "OPERATION_TYPE_QUERY",
"original": "nodesById",
"mapped": "QueryNodesById",
"request": "QueryNodesByIdRequest",
"response": "QueryNodesByIdResponse"
},
{
"type": "OPERATION_TYPE_MUTATION",
"original": "addProject",
Expand Down Expand Up @@ -301,6 +308,16 @@
"original": "panic",
"mapped": "panic",
"argumentMappings": []
},
{
"original": "nodesById",
"mapped": "nodes_by_id",
"argumentMappings": [
{
"original": "id",
"mapped": "id"
}
]
}
]
},
Expand Down
Loading
Loading