Juniper: Union with Boxed enum variants

Created on 12 Jan 2021  路  2Comments  路  Source: graphql-rust/juniper

Hi,

Upgrading from 0.14 to 0.15 is giving me some problems with unions that have some boxed enum variant, i.e.:

#[derive(GraphQLUnion)]
pub enum GqlResult {
    Ok(Box<Data>),
    Err(Error),
}

the docs specifies that container types are supported but the compiler complains about a missing impl of the trait GraphQLObjectType for Box, I'm doing something wrong?

bug

Most helpful comment

This is released to crates.io. Thanks for the report @Guara92 and for the PR @tyranron !

All 2 comments

Seems to be a major hole in type-level stuff 馃檧

Will try to submit the PR shortly.

This is released to crates.io. Thanks for the report @Guara92 and for the PR @tyranron !

Was this page helpful?
0 / 5 - 0 ratings