Closed folivi closed 7 months ago
Hi all,
I have a struct MyStructFromDatabase {}
I have to turn into a Graphql object I need to return.
But my compiler complains with this error:
error: expected tuple struct or tuple variant, found function Ok label: not a tuple struct or tuple variant
Ok
What I'm I doin't wrong?
Thank you for your help
Seems like the issue came for VS Code.
@folivi an empty struct cannot be a GraphQL object, because it's obligated to have fields.
Hi all,
I have a struct MyStructFromDatabase {}
I have to turn into a Graphql object I need to return.
But my compiler complains with this error:
error: expected tuple struct or tuple variant, found function
Ok
label: not a tuple struct or tuple variantWhat I'm I doin't wrong?
Thank you for your help