You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uploads: (args["uploads"] asList<Object?>).map((e) => e asUpload).toList());
then everything works flawlessly, uploads are successful.
The text was updated successfully, but these errors were encountered:
SleepySquash
changed the title
List<Object?> is not subtype of List<Upload> when accepting multiple Uploads in MutationsList<Object?> is not subtype of List<Upload> when accepting multiple Uploads in MutationSep 17, 2023
Thank you for the package, it's working great!
I've discovered that multiple
Upload
s currently throw aGraphQLError
due to type cast error, caused byleto_generator
.Let's say we have:
When running
leto_generator
, the following code is generated:And the line:
throws an error in runtime:
List<Object?>
is not subtype ofList<Upload>
in type cast.If that line is changed to:
or
then everything works flawlessly, uploads are successful.
The text was updated successfully, but these errors were encountered: