Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting conversion error #174

Open
bansalnaman15 opened this issue Apr 1, 2021 · 1 comment
Open

Getting conversion error #174

bansalnaman15 opened this issue Apr 1, 2021 · 1 comment

Comments

@bansalnaman15
Copy link

graphene_mongo.converter.MongoEngineConversionError: Don't know how to convert the MongoEngine field <mongoengine.fields.BinaryField object at 0x000001B649C00250> (<class 'mongoengine.fields.BinaryField'>)

This is what I am getting, Please Help.!
Thanks

@adarshdigievo
Copy link
Contributor

@bansalnaman15 Can you give a bit more context here on the type of data stored in the binary and which Graphql scalar you expect the field to be converted into?

As a workaround for now, you may exclude the field from the MongoEngineObjectType to prevent getting this error. If you expect the BinaryField to be converted to a string, you can then define a custom resolver and convert the data explicitly inside the resolver.

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

No branches or pull requests

2 participants