Closed bwgjoseph closed 3 years ago
the scope/collection changes are not in the alpha.10 When we publish a new version alpha.11 this should be available later today. I will update this message when it's released.
We have released a new version of our Ottoman NPM package alpha.11 Documentation site updated and available at: v2.ottomanjs.com
Changelog: PROJ MAINT: Bump ini from 1.3.5 to 1.3.8 ADDED FEAT: Support for findOneAndUpdate() CHANGE FEAT: Rename update() method to updateById() ADDED FEAT: Provide updateMany() Support ADDED FEAT: Provide removeMany() Support ADDED FEAT: Make Ottoman work with Scopes and Collection PROJ MAINT: Bump highlight.js from 10.4.0 to 10.4.1 BUG FIX: Fix Date-String format comparison in BETWEEN Operator
Create new issue #36 to track, will close this
Hi,
Is there anything that I need to change to be able to use it?
I setup
enterprise-7.0.0-beta
withottoman@2.0.0-alpha.10
to try out but seem like there's issue creating new doc but the connection seem fine.In my initialize code as seen in https://github.com/bwgjoseph/mongoose-vs-ottoman/blob/3dfa9c5480f5d504772490509ec66119bdbe19cf/test/ts/setup/global.setup.ts#L17-L30
This is the output for
removeDocuments
Based on that, I'm guessing the connection and query seem be working fine
So I went ahead to run my
create
test https://github.com/bwgjoseph/mongoose-vs-ottoman/blob/3dfa9c5480f5d504772490509ec66119bdbe19cf/test/ts/create.test.ts#L19-L34I kept getting timeout error
Is there something that has to change for this to work with the new
7.0-beta
?I am also referring to the example here in https://github.com/httpJunkie/ottoman-examples/tree/master/examples-7-zero, more specifically -
scenario-default-implied.js
where the initialize is declared asHow is it different from the way I declare it? Or it's both the same?
Thank you