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

How to use recursive generic InputObject #859

Closed
onichandame opened this issue Mar 6, 2022 · 2 comments
Closed

How to use recursive generic InputObject #859

onichandame opened this issue Mar 6, 2022 · 2 comments
Labels
question Further information is requested Stale

Comments

@onichandame
Copy link

Currently the following code does not compile:

#[derive(InputObject)]
#[graphql(concrete(name = "StringNode", params(String)))]
pub struct Node<T: InputType> {
    value: T,
    children: Vec<Node<T>>,
}

The error I am seeing is:

the trait bound `Node<T>: InputType` is not satisfied
required because of the requirements on the impl of `InputType` for `Vec<Node<T>>`
@onichandame onichandame added the question Further information is requested label Mar 6, 2022
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 31, 2022
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

1 participant