O'Dane Brissett
O'Dane Brissett
> @MidnightP no plans to integrate with that currently. We considered using the [document validation functionality that was introduced in 3.2](https://docs.mongodb.com/manual/core/document-validation/), but that was too much of a stretch to...
can't you add strength for case insensitivity @niftylettuce ? I tried and it didn't really work. Only works if i create the collection manually first. trying to achieve this [link](https://docs.mongodb.com/manual/core/index-case-insensitive/#case-insensitive-indexes-on-collections-with-a-default-collation)...
I understand. But it would be way easier if the response returned matched what you defined by default. It works with simple nested array, just not one that looks like...
This works thanks a lot!
This one can be closed
So @vkarpov15 i use this approach : `async(companyID) => { await User.find({company:companyID}).then(data =>{ return data }).catch(err => { return err.message }) } ` It works but is it faulty? I...
> @Enado95 I'm not sure what you mean by 'work'. The code as written definitely needs some work - its clumsy and suppresses errors. Why do you do `.then(data =>...
So the same implementation for find or findOneAndUpdate would work similarly? Also, since its an async function, is the `.exec()` required?
Okay noted. On Sun, Sep 29, 2019 at 6:53 PM Valeri Karpov wrote: > find() and findOneAndUpdate() both return mongoose queries, so they should > be fine as far as...
It does not work for me. Even though I added the collation options to the schema, the collection does not get created with collation. Therefore when I create an Index...