I'm really new to TaffyDB and JavaScript. How can I combine methods in TaffyDB?
I'm trying to use distinct () and stringify(), which is not working
var xyz = db().distinct("mnths").stringify ();
console.log(xyz );
I get an error stating that stringify() is not supported.
Thank you.
db().distinct("mnths")returns an array and not a TaffyDB object hence.stringify()will not work on it.You can instead do
This is what the documentation says
Update
You can do something like this