Closed bhaze31 closed 1 year ago
Hey @bhaze31, no worries about asking questions here.
In this case I think CreateLeagueArguments
should be declared as an Input
instead of a Type
. Check out the Input Objects section of the Usage Guide for more info.
@NeedleInAJayStack did not even know that Usage Guide existed, and that is exactly what I needed. Really appreciate the speedy response! Will close this out now
Vapor: 4.74.2 Graphiti: 1.10.0 GraphQL: 2.5.0 Pioneer 1.2.1
I am using a Codable struct as an input type for one of my mutations. I defined the
Type
in theschema
itself as such:For the mutation I have:
And the arguments struct for the resolver is:
However, when attempting to run the app, I get:
Happy to supply more context, and apologies if this isn't a bug.