Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemente From<ID> for ConstValue #1169

Merged
merged 1 commit into from Jan 3, 2023

Conversation

smmoosavi
Copy link
Contributor

Code example

        let id: ID = ID("some-value".to_string());
        let field_value = FieldValue::value(id);

error before this pr:

    |
    |         let field_value = FieldValue::value(id);
    |                           ----------------- ^^ the trait `std::convert::From<async_graphql::ID>` is not implemented for `async_graphql::Value`
    |                           |
    |                           required by a bound introduced by this call

@sunli829 sunli829 merged commit 770f9a2 into async-graphql:master Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants