Unknown object type "promise" error when uploading files
BjoernRave opened this issue · comments
Hey, when trying to upload files and validating values uploaded alongside the files I get the following errror:
Unknown object type "promise"
It gets thrown by object-hash
, which is probably tyring to create a hash for caching.
Because with apollo the uploaded files are a promise it throws an error
Hey @BjoernRave 👋,
Thank you for opening an issue. We will get back to you as soon as we can. Also, check out our Open Collective and consider contributing financially.
https://opencollective.com/graphql-shield
PS.: We offer
priority
support for all financial contributors. Don't forget to addpriority
label once you start contributing 😄
I am quite confident this is a duplicate. The rules accept a custom cache function and setting the cache to no_cache
should also work.
@maticzav sorry, for the duplicate. Setting cache to no_cache
did indeed fix the problem. Thank you :)