You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing the new Rover v0.27.0 using a simple test with rover supergraph compose, but the results were inconsistent between v0.27.0 and v0.26.3, the returned output in v0.27.x were always missing the code and details and there was no mention in the release notes or the documentation about this change in behavior.
Steps to reproduce
Create a schema file and name it fed-service-1.graphqls, the use this content in it:
@key("randomStuff")
type Query {
field1: String!
}
Create a schema file and name it fed-service-2.graphqls, the use this content in it:
type Query {
field2: String!
}
Run the following command line in your terminal, once using rover v0.26.3 then again using v0.27.0
(Note: you can also use rover npm to alternate between versions with ease)
In version v0.26.3, the error details and code were correctly included in output.json
{"data":{"success":false},"error":{"code":"E029","details":{"build_errors":[{"code":"INVALID_GRAPHQL","message":"[object Object]","nodes":[{"end":null,"source":"@key(\"randomStuff\")\ntype Query {\n field1: String!\n}","start":null,"subgraph":"fed-service-1"}],"omittedNodesCount":0,"type":"composition"}]},"message":"Encountered 1 build error while trying to build a supergraph."},"json_version":"1"}
Actual result
In version v0.27.x, the error details and code were always missing in output.json, the result was:
{"json_version":"1","data":{"success":false},"error":{"message":"Encountered 1 build error while trying to build a supergraph.","code":null}}
Environment
Running rover info result:
Rover Info:
Version: 0.27.0
Install Location: /Users/<myusername>/.nvm/versions/node/v22.12.0/lib/node_modules/@apollo/rover/binary/rover-0.27.0
OS: Mac OS 15.3.1 [64-bit]
Shell: /opt/homebrew/bin/zsh
The text was updated successfully, but these errors were encountered:
Description
I was testing the new Rover
v0.27.0
using a simple test withrover supergraph compose
, but the results were inconsistent betweenv0.27.0
andv0.26.3
, the returned output inv0.27.x
were always missing thecode
anddetails
and there was no mention in the release notes or the documentation about this change in behavior.Steps to reproduce
fed-service-1.graphqls
, the use this content in it:fed-service-2.graphqls
, the use this content in it:(Note: you can also use rover npm to alternate between versions with ease)
Expected result
In version
v0.26.3
, the errordetails
andcode
were correctly included inoutput.json
Actual result
In version
v0.27.x
, the errordetails
andcode
were always missing inoutput.json
, the result was:Environment
Running
rover info
result:The text was updated successfully, but these errors were encountered: