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 hidden (Show)
Published by B4nan over 2 years ago
onUpdate
properties (9cf454e), closes #2781
onUpdate
properties on one entity (4f0e4cc), closes #2784
onDelete: cascade
when propagating removal (f1e8578), closes #2703
require()
when getting ORM version to fix webpack support (6cfb526), closes #2799
--initial
(4857be7), closes #2800
autoincrement: false
in schema diffing (b39b6ad), closes #2800
Published by B4nan over 2 years ago
repo.nativeInsert()
(791c009)em.getReference()
(58680fc)em.nativeInsert()
(e21d470)Published by B4nan over 2 years ago
null
in Loaded
type (72385b3), closes #2750
em.create()
instead of New<T>
(8ff277d), closes #2727
clientUrl
(43e28b8), closes #2730
createRequire
instead of dynamic import for JSON files (f567d2d), closes #2738
FilterQuery
(1d24eb8), closes #2742
getContext
parameter to @UseRequestContext()
(9516b48), closes #2721
qb.orderBy()
(fdf03c3), closes #2747
refreshDatabase()
(7ce12d6)Published by B4nan over 2 years ago
https://medium.com/@b4nan/mikro-orm-5-stricter-safer-smarter-b8412e84cca4
mapToPK
property (b14c8fb), closes #2337
em.create()
with reference wrapper (c069960)file://
urls in normalizePath (#2697) (127b0ae)prop.onCreate
(fb67ea6)mapToPk
properties (b93c59e)em.remove()
to 1:m collections (c23c39c), closes #2395
em.remove()
to m:1 properties of 1:m relations (e6fa2f7), closes #2636
em.populate()
(c20fe88), closes #1479
MigrateOptions
type in core with migrations package (#2259) (d4b8c2c)populate: true
(3c21663), closes #1134
disableIdentityMap
(0677d74), closes #1307
migration:fresh
(63eb4e6)baseDir
and allow absolute paths for sqlite dbName
(36a3ae5)$eq
(6eb320e), closes #2462
0
as limit (#2700) (3f284ed)qb.merge()
(5aead23), closes #2177
onConflict
calls (30392bc), closes #1803
$and
branches when auto joining to-many relations (70c795a)qb.update/delete()
after qb.where()
(96893e0), closes #2390
database:create
command (#1778) (7e9d97d), closes #1757
useTsNode: true
without ts-node available (5aff134), closes #1957
em.clearCache(key)
method (1ccfad8)persistOnCreate
option and enable it for seeder (f0fec1b)referencedColumnNames
on m:1/1:1 decorators (2f5a5e1)em.create()
respect required properties (2385f1d)EventType.onLoad
that fires after entity is fully loaded (14c2fa9)freshEventManager
to em.fork()
options (a0f3fd0), closes #1741
populateWhere
option (#2660) (16c5e91)QueryFlag.AUTO_JOIN_ONE_TO_ONE_OWNER
(be9d9e1), closes #1660
Reference.createFromPK()
helper method (2217154)Collection.remove()
(0b37654), closes #2398
gen-esm-wrapper
(aa71065), closes #1010
orderBy
parameter (#2211) (0ec22ed), closes #2010
Logger
instance (#2443) (c7a75e0)populate
hint based on fields
(0097539), closes #2468
FindOptions.fields
strictly typed (dot notation) (fd43099)populate
parameter strictly typed with dot notation (3372f02)@UseRequestContext()
decorator to core
package (253216d)AsyncLocalStorage
instead of domain
API (be27bf7)onCreate
and onUpdate
(288899d), closes #2283 #2391
em
parameter to the filter callback parameters (6858986), closes #2214
knex
function (383bc24)MigrationGenerator
(3cc366b), closes #1913
SchemaGenerator
support for mongo (#2658) (cc11859)qb.getCount()
method (f773736), closes #2066
QueryBuilder
instance (#2446) (c1c4d51)qb.execute()
(c4cfedb), closes #2396
qb.indexHint()
method that appends to the from clause (ce89e1f), closes #1663
expr()
with alias parameter (48702c7), closes #2405
expr
helper (90777a7), closes #2399
em.create()
and other methods strict (#1718) (e8b7119), closes #1456
toObject()
and similar strict (#1719) (c202396)Promise.all()
(f788773), closes #2412
Please see the upgrading guide.
Published by B4nan almost 3 years ago
merge
when it's not initialized (bdd7452), closes #1927
forceEntityConstructor
is used (53d4c39), closes #2406 #2409
@Embedded()
(aca6d08), closes #2464
pool.min/max
options in mongo driver (830179d), closes #2228
Reference
properties on prototype (4ef2623)Collection
properties as non-enumerable (523addd), closes #2543
Published by B4nan about 3 years ago
qb.delete()
(380fe3d), closes #2136
Published by B4nan over 3 years ago
Published by B4nan over 3 years ago
em.create()
(34391cd), closes #1840
afterFlush
event (539311e), closes #1824
EntitySchema
property types (0b831d0), closes #1867
cascade
value based on update/delete rules (dca4f21), closes #1857
Published by B4nan over 3 years ago
updateNestedEntities
flag with collections (db77e8b), closes #1717
onCreate
& onUpdate
(34c1aa5), closes #1751
qb.onConflict(...).merge()
without params (68b570e), closes #1774
findAndCount
with populate (61bc7cf), closes #1736
tsconfig.json
(#1804) (6597552), closes #1792
$and
for merging of multiple filter conditions (19f3f1d), closes #1776
qb.onConflict().merge()
(fc3cf01), closes #1774
onConflict
calls (d9ae997), closes #1803
Published by B4nan over 3 years ago
QueryFlag.PAGINATE
with joined loading strategy (11aa0a3)Published by B4nan over 3 years ago
Published by B4nan over 3 years ago
Published by B4nan over 3 years ago
Collection.loadCount
for unidirectional M:N (27e4dd2), closes #1608
Published by B4nan over 3 years ago
$not
operator (8071fd0), closes #1537
em.find()
from hooks (fec3285), closes #1503
Collection.matching()
method to allow pagination (#1502) (1ad3448), closes #334
CacheAdapter
interface (2795b5a), closes #1509
Published by B4nan over 3 years ago
Published by B4nan over 3 years ago
convertToJSValueSQL
at QB level too (fbb2825), closes #1432
Collection.remove()
(3447039), closes #1408
mergeObjects
only for POJOs in assign helper (c5bbcee), closes #1406
Published by B4nan over 3 years ago
eager
relations with joined loading strategy (ba94e28), closes #1352
Published by B4nan over 3 years ago
em.create()
should not mutate the input object (b83b211), closes #1294
lazy
flag with formulas (4b2b5ce), closes #1229
em.findOne()
(a0419a4), closes #1291
Reference
required (5e1cf23)Collection.getIdentifiers()
(#1225) (f8024c9), closes #1224
Set
as array-like input (#1277) (2945b8c)onConflict()
(b97ecb5), closes #1240
IdentityMap
iterable (e13757a)