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 ran into an issue with a federated query that simply returns an Int. Calling the service directly (also running on Mercurius) returns the value as expected.
Relevant bit from the schema:
typeQuery {
myCount: Int!
}
I'm not seeing any calls from the federation service to the downstream service, and calls fail with Cannot return null for non-nullable field Query.myCount.. Making the return type nullable causes a null to be returned.
Wrapping the result in a custom type, such as type MyAggregations { count: Int! } works as expected.
The text was updated successfully, but these errors were encountered:
I know there's a test for it, but this still seems to be an issue when used with Python's Graphene Federation. It works fine using Apollo Federation / Gateway. Tested with both Int! and String! scalar types as the return on the root Query. It is fine if we use a custom type / object type.
EDIT: Issue is resolved when using extend type Query . Related to #23
I ran into an issue with a federated query that simply returns an
Int
. Calling the service directly (also running on Mercurius) returns the value as expected.Relevant bit from the schema:
I'm not seeing any calls from the federation service to the downstream service, and calls fail with
Cannot return null for non-nullable field Query.myCount.
. Making the return type nullable causes anull
to be returned.Wrapping the result in a custom type, such as
type MyAggregations { count: Int! }
works as expected.The text was updated successfully, but these errors were encountered: