Skip to content

Problem uploading a file with GraphQLFile #695

@Cleversou1983

Description

@Cleversou1983

Currently I have a mutation like this:

mutation uploadFile($file:Upload!) {

}

extension UploadFileMutation {
public typealias Upload = GraphQLFile
}

I've made an extension, so the compiler doesn't complain about the type

When I try use GraphQLFile as parameter
Cannot convert value of type 'UploadFileMutation.Upload' (aka 'GraphQLFile') to expected dictionary value type 'Optional'

I couldn't upload with HTTPTransportNetwork as well.. Could someone give some hints?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsFocuses on documentation changesquestionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions