New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rover dev
should extend a remote supergraph with a local subgraph
#1103
Comments
To really follow the pattern here, will need to support downloading switch statements in this file should be updated to support the router |
originally posted by @BrynCooke in #1130
|
As for initial scoping, we should not worry about how folks build their Router binaries. We should download the router at runtime just like we do for the |
agree.
yup. we don't need to focus on it for the first pass at this. we have a number of options as to how this can work and be configured and the build configuration is one of those ways. |
rover subgraph dev
should extend a remote supergraph with a local subgraph
this will be exposed via Develop your subgraphYou can make changes to your subgraph locally, and run $ rover subgraph dev --log debug
Reading contents of .apollo/project.yaml...
DEBUG ApolloConfigDir {
ApolloConfigYaml {
project_type: subgraph
supergraph:
id: my-supergraph
default_variant: current
subgraphs:
my-subgraph:
schema:
file: ./my-subgraph.graphql
variants:
current:
routing_url: https://my-subgraph.apollo.dev/graphql
dev:
routing_url: http://localhost:4000/graphql
}
}
Checking status of http://localhost:4000/graphql...
DEBUG Detected apollo-server subgraph implementation
DEBUG Found router binary in ~/.rover/bin/router-v0.10.0
DEBUG Found composition binary in ~/.rover/bin/supergraph-v2.0.6
Composing 'my-subgraph' into 'my-supergraph@current'...
Starting graph router for 'my-supergraph@current' extended with local 'my-subgraph'...
Listening for requests at http://localhost:7777/graphql... |
I'd like to talk about the top level |
We should also talk about where the router config fits into all of this. |
Yup! This is essentially the plan but perhaps I did not make it super clear. My plan for This pattern would then extend to
Agree, this needs solidifying. Long term I want to have a |
rover subgraph dev
should extend a remote supergraph with a local subgraphrover dev
should extend a remote supergraph with a local subgraph
this got pretty stale and I think we strayed pretty far from implementation here. closing this and will re-open with a pruned description now that we've shipped the first version of |
opened #1494 |
I'm thinking we could take a similar plugin approach that we have with
supergraph compose
.auto-download the correct router version that matches the composition version that Rover selects, and put it in
~/.rover/bin/router-v2.0.0
. Rover could run the router with a call toexecvp
or something similar, may want to just usestd::process::Command
to make sure it works on Windows.Biggest unanswered thing here is a good config story.
The text was updated successfully, but these errors were encountered: