Releases: foxifyjs/odin
Releases · foxifyjs/odin
v0.10.0
v0.9.0
- ⚡ Added
iterate
method toDB
,Odin
& relational methods - ⚡ Added
unset
method toDB
- ⚡ Added
delete
method toOdin
instance - ⚡ Added
withTrashed
method to relational methods - ⚡ Added
lean
method to relational methods - 💥 Method
restore
inOdin
instance returnsnumber
now (it wasboolean
before) - 🪲 Fixed bug with
^.+_ids$
fields not casting to array ofObjectId
while saving
v0.8.0
- 🪲 Fixed
embedMany
relation bug - 🪲 Fixed not applying
withTrashed
to relations - 💥
Types
is now a peerDependency (@foxify/schema
) which needs to be installed! - 👓 Added
embedMany
tests - 👓 Added
Node.js
version11
to tests
v0.7.0
- ⚡ Added
whereHas
method to models - 🌟 Added deep relation compatibility to
has
&whereHas
v0.6.0
- ⚡ Added
has
to model queries (use with caution since it may have a negative impact on your performance)
v0.5.4
- ⚡ Added
Collection
to create collection and indexes
v0.5.0
- ⚡ Added deep relation loading ability
- ⚡ Added
lean
method to model queries to skip creating model instances - 🌟 Improved model static method
toJsonSchema
functionality - 🌟 Improved model hook
created
v0.4.0
- ⚡ Added
embedMany
relation - 🌟 Improved
toJsonSchema
functionality
v0.3.0
- ⚡ Added
toJsonSchema
static method to Model so you can easily use it withFoxify
router schema option - 🌟 Improved throwing validation error for
Foxify
usage
v0.2.0
- ⚡ Added more advanced filtering ability to queries and joins
- ⚡ Added
numeral
toString
schema type - ⚡ Added
enum
toString
schema type