These are chat archives for Automattic/mongoose

7th
Aug 2017
lakamsani
@lakamsani
Aug 07 2017 06:24
anyone know how to specify a hashed index using mongoose? https://docs.mongodb.com/v3.2/core/index-hashed/
lakamsani
@lakamsani
Aug 07 2017 06:35
purchases.index({receipt: "hashed"}) seems to do it. tried inline in the model like this:receipt : {type: String, index: "hashed"} but that didn't work.