Skip to content

Apollo Upload Scalar type is TypeScript 'any' #4320

Answered by ardatan
jthomperoo asked this question in General
Discussion options

You must be logged in to vote

Upload is a custom scalar that is not part of GraphQL Specification. Like all other custom scalars, Upload is any in generated code. You can use scalars field to provide your own TS definition for custom scalars; (e.g., for frontend, you can use Upload: File)
https://graphql-code-generator.com/docs/plugins/typescript#scalars

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@jthomperoo
Comment options

Answer selected by ardatan
Comment options

You must be logged in to vote
4 replies
@ardatan
Comment options

ardatan Jan 29, 2021
Collaborator

@lgandecki
Comment options

@alanrsoares
Comment options

@deCodeIt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants