Convert Binary.createFromBase64() to string

Hi! I have a document in which one field is of Binary type:

hash: Binary.createFromBase64('foo', 0)

I convert this field in my node app using hash.buffer.toString("hex") but i was wondering if there is a method to convert the binary to string that i can use in a aggregation query.

Thanks.