tungus icon indicating copy to clipboard operation
tungus copied to clipboard

Finding with a Buffer returns null

Open gdw2 opened this issue 11 years ago • 0 comments

The following over-simplified code shows how I'm trying to use a Buffer as a key (a sha256 hash in this case). When trying to find a document based on the buffer, I always get a null doc in return. This does work when I switch from tungus to mongoose (i.e. mongodb).

MySchema = new Schema( key: type: Buffer )

Integrity.findOne(key: someKey, (err, doc) ->
  # doc is always null with tingo.  Not so with mongodb.
)

gdw2 avatar Feb 25 '14 16:02 gdw2