TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
MIT License
Bot releases are visible (Hide)
Published by B4nan 9 months ago
em.insertMany
returns array of PKs for a single item too (#5180) (0d58aaf), closes #5179
EntityDTO
(dc4fc6f)EntityDTO
type (1691a79)assign
on object properties won't ignore changes (a360300), closes #5158
qb.getSingleResult()
(0e56fe1), closes #5182
Published by B4nan 9 months ago
populate: ['*']
from fields: ['*']
(f658376), closes #5139
em.upsert/Many
(3d8c242), closes #5136
Ref
types with FK as PK (c8858d2), closes #5144
Published by B4nan 9 months ago
orderBy
and populateOrderBy
(7bf986c), closes #5110
Loaded
when partially loaded (75d035d), closes #5123
forceEntityConstructor
(b293789), closes #5118
Published by B4nan 10 months ago
em.remove
with not managed entity (88e055e), closes #5103
load()
on references and collections of not managed entities (3b94bf9), closes #5082
logging
options in em.count
(481d02e), closes #5085
$some/$none/$every
on nested relations (2b3bd4d), closes #5099
Opt
and Hidden
types when used in intersection (2bd612e)Published by B4nan 10 months ago
https://mikro-orm.io/blog/mikro-orm-6-released
EntitySchema
(d4d5b5e).env
files automatically (09e60f7)useDefineForClassFields
(#4730) (83f24aa), closes #4216
ensureDatabase
on init
(827b1f1)EntitySchema
typing for repository
option (37ee42e), closes #5006
em.create
strictly typed for relations too (#4752) (3535cc0), closes #4748
Loaded
type more flexible (c95e3b6), closes #3277
Reference.set()
as private (#5017) (5aebf0b), closes #5003
Date
properties (#4391) (3a80369), closes #4362 #4360 #1476
@Index
and @Unique
decorators on embeddables (#4736) (c3d7717)schema
option in first level cache (1833455)em.insert/Many
(7eae031), closes #4424
em.refresh()
(0bf5363)em.refresh()
(55815f4)Collection
initialization to use em.populate()
(#4571) (7495142), closes #4464
join on
conditions for populateWhere
(#4025) (a03e57c), closes #3871
em.getKnex()
(46957ba)id
to _id
for embeddables and entities without serialized PK (0cee82d), closes #4960
$and
with a single item (a737b20)JavaScriptMetadataProvider
(4e337cb)Reference.load(prop: keyof T)
signature (#5015) (32b48f7)@EnsureRequestContext
decorator + rename @UseRequestContext
(5e088ae), closes #4009
Collection.load()
method (8aa1ad1)EagerProps
symbol to respect eager props on type level (dfcf1f8)em.findAll()
with optional where
option (#4946) (23b0551), closes #3982
FindOptions.exclude
(#5024) (fe239cf)GeneratedCacheAdapter
for production usage (#4167) (bd478af), closes #4164
Hidden
type as an alternative to HiddenProps
symbol (#5009) (c047bb1)HiddenProps
symbol as type-level companion for hidden: true
(7984769), closes #4093
MikroORM.initSync()
helper (#4166) (8b1a1fa), closes #4164
Opt
type as an alternative to OptionalProps
symbol (#4753) (8853904)orm.checkConnection()
helper (#4961) (b868f02), closes #4959
ScalarRef
and EntityRef
types to allow explicit control (1ef7856), closes #4907
sql.now()
, sql.lower()
and sql.upper()
functions (#5044) (016fe63)sql.ref()
helper (#4402) (b695811)em.findByCursor()
(#3975) (1e6825f)LoggerContext
with labeling support (#4233) (b985646), closes #4230
onMetadata
and afterDiscovered
(#4799) (5f6c4f8)em.persist()
(1b09d26), closes #4905
serialization.forceObject
option (731087d), closes #4881
Type.compareValues
method to allow custom comparators (732307a), closes #4870
CountOptions
in Collection.loadCount()
(25d1851)EntitySchema
(10cfd28)subscribers
array (7c8f776), closes #4231
Reference.load()
and Collection.load()
(#5025) (06012f7), closes #4975
serialization.forceObject: true
on type level (#5045) (88eb3e5)colors
ORM config option (1bcaf09), closes #5037
EntityManager
(#5064) (6c363e7)populate: ['$infer']
(#4939) (080fdbb), closes #1309
--config
(#3924) (2c929e0)PopulateHint
enum (populateWhere
) (2bd21eb)populate: ['*']
(#4927) (7780f34), closes #4920
Ref
wrapper on scalar properties (#4358) (f9c30f1)loadStrategy
and flushMode
(f4e4e3b)em.insert/Many
strictly typed (require all properties) (01935e6)BigInt
support (#4719) (31a905c)mappedBy
option for 1:m properties (716aa76)raw()
helper (#4197) (9c1b205)ignoreFields
on type level in wrap().toObject()
(15de7a0), closes #4198
schema
parameter in clientUrl
(#4998) (9176ee0), closes #4997
Loaded
type from Ref.load()
(bc3ffa9), closes #3755
em.populate()
when called on single entity (4c4ec23)raw()
helper (#4094) (1cd0d1e), closes #3657
OptionalProps
and other symbols for EntitySchema
(00f0a34)order by nulls first/last
(#5021) (df75b24), closes #5004
schema.ensureDatabase()
method to create/clear (6a12fe1)populateWhere: 'all'
(#4957) (e5dbc24)$some
, $none
and $every
subquery operators (#4917) (50d2265), closes #2916
Please see the upgrading guide.
Full Changelog: https://github.com/mikro-orm/mikro-orm/compare/v5.9.7...v6.0.0
Published by B4nan 10 months ago
em.canPopulate()
when using STI (b8fcf45), closes #5043
Published by B4nan 10 months ago
populate: true
and refresh: true
(#5001) (9f63378)em.upsert
(a7e9a82), closes #4945
@>
) with object arrays (6a5a1ef), closes #4973
Published by B4nan 11 months ago
mikro-orm-esm
on windows (c491af9)em.find
for inlined embedded properties (759b7b8), closes #4904
em.upsertMany()
(85c38d4), closes #4923
Published by B4nan 12 months ago
Published by B4nan 12 months ago
Published by B4nan 12 months ago
convertToJSValueSQL
on composite FKs too (41425cb), closes #4843
columnType
for non-inferrable types (e.g. unions with null
) (6bc116a), closes #4833
qb.groupBy()
(e27e4b9), closes #2929
preferReadReplicas
in QueryBuilder
(22e140e), closes #4847
Published by B4nan about 1 year ago
clientUrl
of read replicas (015d4f4), closes #4813
qb.execute()
(#4825) (5a28e9b), closes #4816 #4741
Published by B4nan about 1 year ago
mapToPk
as scalars to support custom types (4118076), closes #4803
Published by B4nan about 1 year ago
em.upsertMany
with composite keys (2f58556), closes #4786
Published by B4nan about 1 year ago