Comments (1)
I'll add one more thing, the current behavior is inconsistent with the TS typings. The method signature allows you to pass an empty where param object; em.findOne(User, {})
is valid TS. The error only comes up at runtime.
If the intention is to prevent empty findOne
/findOneOrFail
queries, then this issue is actually less of a feature request and more of a bug report because the types should ensure that the where param object is populated.
That said, I would prefer that the requirement is loosened to allow for empty where param objects or perhaps no where param at all.
from mikro-orm.
Related Issues (20)
- Error when batch updating null value for a nullable embeddable array property
- Issue with Generated Query When Using raw() Function in SQLite
- Index Creation Query is Generated Twice When Using Schema Generator in SQLite Driver Environment HOT 1
- Upsert entity with relation.
- @Property() with a name starting with __ are not included by default if no serialization groups are specified
- Query returns different BigInt value than the one stored in sqlite database HOT 2
- Issues with bidirectionalRelations Generation in Entity Models HOT 6
- Schema Generator always generates diff for vector(N) type HOT 5
- Postgres `session_replication_role` results in migration failure
- Please provide either 'type' or 'entity' attribute in Customer.id
- Empty string enum generates new migration file everytime migration:fresh is run
- EntityDTO incorrectly infers required properties as optional when using wrap().toObject()
- Calling `refresh` from inside a transaction seems to remove the entity from the UnitOfWork
- originalEntity in afterFlush hook destructures embeddable fields
- Issue populating relations
- Ability to listen for umzug events when using Migrator programmatically HOT 4
- Add an entity decorator to handle user permisionning
- feat: add ydb client
- Postgres JSON type simple value returned as the wrong type HOT 3
- Custom Pivot entity with a ManyToMany Relationship always attempt an insert HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mikro-orm.