graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Uuid v1 integration problem #1133

Closed mishaszu closed 1 year ago

mishaszu commented 1 year ago

Describe the bug Similar problem with Uuid support as here but with a newer version and no way to downgrade. Using Uuid version 1+ results with:

#[derive(GraphQLObject)]
    the trait `GraphQLValueAsync<__S>` is not implemented for `uuid::Uuid`

To Reproduce Steps to reproduce the behavior:

#[derive(GraphQLObject)]
pub struct Item {
    pub id: Uuid
}

Expected behavior Would be nice to have Uuid 1.0 support.

Additional context I use juniper 0.15.10. I saw Uuid version 1.0 in integrations on master but it seems doesn't work. The version below 1.0 breaks diesel.

tyranron commented 1 year ago

@mishaszu

I saw Uuid version 1.0 in integrations on master but it seems doesn't work. The version below 1.0 breaks diesel.

Yes, you should use master branch instead of latest release to have uuid of 1.0 version. I hope I'll release juniper 0.16 with it till New Year, but cannot guarantee.

mishaszu commented 1 year ago

I updated both, juniper & juniper-actix to the master branch and it works. Thanks!