GraphQL - Can't get Binary Data


I’m using MongoDB Realm and I’m able to store binary data but when I try to get the binData with GraphQL, I have the error : *Cannot query field “MyField” on type “MyCollection”
It’s like if my field didn’t exist, but I can find the data in MongoDB Compass.

Do I need to store data in String to be able to use them with GraphQL ?

Thanks a lot :slight_smile:

I have the same issue. Does anyone have any answer?

I have the same problem with Binary data type. The same field is accessible if I change it to different type. I assume Realm doesn’t support Binary data type in GraphQL.

Hey all - unfortunately not, but one way to get it is to use a custom resolver with a computed field that casts it to a type that is GraphQL compatible (i.e. String).