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
internal: expects an array error with array type #1157
Labels
question
Further information is requested
Comments
You need to convert all elements to Ok(Some(Value::List(
vec!["boom", "town"].into_iter().map(Value::from).collect(),
))) |
This also doesn't work although both pass Rust analyser Ok(Some(Value::List(vec!(Value::from("testing".to_string()), Value::from("testing".to_string()))))) |
Sorry I was wrong😂, the list resolver does not recognize FieldValue::list(vec!["boom", "town"].into_iter().map(FieldValue::value)) This example can help you: |
I will support |
Released in |
This is absolutely awesome .. thank you SO much!
…On Wed, Nov 30, 2022 at 4:18 PM Sunli ***@***.***> wrote:
Released in v5.0.2
—
Reply to this email directly, view it on GitHub
<#1157 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH5FGWOSVIA23CXKG277U3DWK545RANCNFSM6AAAAAASO7LKY4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi really struggling with this would really appreciate your help
My parent resolver is giving me the error: internal: expects an array
I am iterating through the fields in the dynamic version .. this is a simplified version where im returning a hard coded value simulating what im expecting to return:
I can't return an array literal because the trait bound
async_graphql::Value: std::convert::From<[&str; 2]>
is not satisfied so i can't easily test if the problem is it expects an actual array rather than a vecCan you help?
The text was updated successfully, but these errors were encountered: