Fabrizio Ruggeri

Results 91 comments of Fabrizio Ruggeri

If you specify the Id for the counter you should have no problem as said in other comments.

Can you please post more code, from the schema definition to the prt where you save the document? A minimal replicable code maybe. There's a test in the library that...

It depends where you define the models. They should be defined just once otherwise you'll have this problem. In which file you put your definitions? How are you importing this...

This is an option you have to pass to mongoose. This plugin doesn't set it anywhere

As above, I think you have to fix this at mongoose level, not for this plugin specifically

To be honest, I don't know. I never tried it on CosmosDB. There's nothing special in this middleware, so as long as basic operations on mongo are supported on cosmos,...

I'll do, and I will add the related test

Hello @rernens , sorry for coming back so late to you but I had no time at all to look at this. I ned to fin the time to look...

So, your intent is to make this kind of calls? ```js this.setNext('employees_counter', false, (err) => { ... }); ``` and so the save won't be called? I understand. I also...

hello @rip32700 I think you can follow what it explained in the [Not automatic sequences](https://github.com/ramiel/mongoose-sequence#not-automatic-sequences) section of the readme for your use case. Something like this ```js MySchema = mongoose.Schema({...