Skip to content

Receive custom variables while uploading a file on server #78

@dg92

Description

@dg92

Is there a way to get variables that are passed other than a file related stuff in the ctx object?

I have a mutation
mutation upload($file: Upload!, $entityId: String!) { uploadFile(file: $file, entityId: $entityId) { publicURL } }

I am passing entityId but when I try to look for it in ctx.params it's just a stream obj and ctx.meta contain file meta. I also need to get entityId. Is there a way to get that?

@shawnmcknight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions