graphql-kotlin
graphql-kotlin copied to clipboard
Provide an example of Apollo file upload
Currently there's no example demonstrating the implementation of a file upload. Desired would be one example with both, single and multiple files.
Apollo file uploads are not part of the GraphQL specification and are not supported "out-of-the-box". As per #518 you will have to configure Jackson object mapper to correctly handle those types (and potentially also configure custom data fetcher to apply the custom logic - if needed).
There are some examples linked in other related issues https://github.com/ExpediaGroup/graphql-kotlin/issues/661#issuecomment-616560182 and https://github.com/ExpediaGroup/graphql-kotlin/issues/518#issuecomment-617022276
@dariuszkuc Should we add a section to the docs mentioning Apollo file uploads and that they are not supported by default, just to clarify this for further issues?
Or should we leave that to the new discussion: https://github.com/ExpediaGroup/graphql-kotlin/discussions/1037