-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support rover supergraph fetch
for contract variants
#1013
Comments
I can confirm that our remote API doesn't yet support contract variants! Once that lands, this will just start working right? With no changes on Rover? |
@lennyburdette @abernix The API for fetching the latest approved schema should be ready for use. This query should work for regular variants and contract variants. query {
service(id: "") {
variant(name: "") {
latestApprovedLaunch {
build {
result {
... on BuildSuccess {
coreSchema {
apiDocument
coreDocument
}
}
}
}
}
}
}
} |
hey @david-castaneda - would love to accept a PR that uses this new query! |
@david-castaneda will |
Yep. The latest approved launch contains the schema that is being used by uplink for running gateways/routers. |
1 similar comment
Yep. The latest approved launch contains the schema that is being used by uplink for running gateways/routers. |
This works now. |
From a customer:
When using
rover supergraph fetch <variant_graph_ref>
it fails saying:The use case is fetching the supergraph schema to use in an Uplink fallback. They need the contract supergraph with all the
@inaccessible
directives applied.@jsegaran and @david-castaneda are working on an API change that should make this possible.
The text was updated successfully, but these errors were encountered: