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 have a Domain, Post and Image types. Both my Domain and my Post types have an images() resolver. Domain::images() creates a Connection<i64, Image, DomainEdge, EmptyFields>, while Post::images() returns a Connection<i64, Image, PostEdgeFields, EmptyFields>.
Actual behavior
When I build the schema containing my types, I get the following panic:
'async_graphql::types::connection::connection_type::Connection<i64, Image, PostEdgeFields> and async_graphql::types::connection::connection_type::Connection<i64, Image, DomainEdge> have the same GraphQL name ImageConnection' in /Users/djc/.cargo/registry/src/github.com-1ecc6299db9ec823/async-graphql-3.0.35/src/registry/mod.rs:411:25.
Additionally, if I name the additional type PostEdge instead of PostEdgeFields I get a different panic:
thread 'main' panicked at 'called Option::unwrap() on a None value', /Users/djc/.cargo/registry/src/github.com-1ecc6299db9ec823/async-graphql-3.0.35/src/registry/mod.rs:435:45
Actual Behavior
Since these types are different, I don't think this cause a failure. I was additionally surprised that this kind of thing causes a run-time failure rather than a compile-time failure.
Specifications
Version: 3.0.35
Platform: macOS
Subsystem: registry
The text was updated successfully, but these errors were encountered:
I have a
Domain
,Post
andImage
types. Both myDomain
and myPost
types have animages()
resolver.Domain::images()
creates aConnection<i64, Image, DomainEdge, EmptyFields>
, whilePost::images()
returns aConnection<i64, Image, PostEdgeFields, EmptyFields>
.Actual behavior
When I build the schema containing my types, I get the following panic:
'
async_graphql::types::connection::connection_type::Connection<i64, Image, PostEdgeFields>
andasync_graphql::types::connection::connection_type::Connection<i64, Image, DomainEdge>
have the same GraphQL nameImageConnection
' in /Users/djc/.cargo/registry/src/github.com-1ecc6299db9ec823/async-graphql-3.0.35/src/registry/mod.rs:411:25.Additionally, if I name the additional type
PostEdge
instead ofPostEdgeFields
I get a different panic:thread 'main' panicked at 'called
Option::unwrap()
on aNone
value', /Users/djc/.cargo/registry/src/github.com-1ecc6299db9ec823/async-graphql-3.0.35/src/registry/mod.rs:435:45Actual Behavior
Since these types are different, I don't think this cause a failure. I was additionally surprised that this kind of thing causes a run-time failure rather than a compile-time failure.
Specifications
The text was updated successfully, but these errors were encountered: