I want to select some 100 fields in a nested populate query in MikroORM with MySQL and just want to leave out some 20 fields. Leaving 20 makes more sense to me, instead of selecting 100, something like db.find().select("-password") in MongoDB. The documentation seems to have only documented Partial Fetches where I can select fields not unselect them.
Is there a way to exclude fields during select in MikroORM?
1.4k Views Asked by Rohith Balaji At
2
There are 2 best solutions below
Related Questions in MYSQL
- MySQL Select Rank
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Push mysql database script to server using git
- Why does mysql stop using indexes when date ranges are added to the query?
- Google Maps API Re-size
- store numpy array in mysql
- Whats wrong with this query? Using ands
- MySQL-Auto increment
- show duplicate values subquery mysql
- Java Web Application Query Is Not Working
- microsoft odbc driver manager data source name not found and no default driver specified
- Setting foreign key in phpMyAdmin
- No responses from google places text search api
- Adding to MAMP database in SQL/PHP
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
Related Questions in TYPESCRIPT
- Use translateProvider.useLoader with Typescript
- Optional method in base class
- Putting Lambdas in OR statement
- Deleting namespace in Socket IO
- Angularjs+Typescript directive implementing $compile
- Typescript type inference inside for loop
- Why void functions are allowed in left part of assignment in Typescript?
- Tools for Apache Cordova - TypeScript debugger jumps to wrong line
- Typescript - is there a way to specify a global reference?
- How to angularjs app.service and $q in typescript
- include typescript file in output result build with TFS
- Mocking Angular $window in unit test cases
- Difference between `share()` and `publish().refCount()`
- TypeScript: workaround for relative reference path?
- How to define knex migrations using Typescript
Related Questions in NESTJS
- best practice for api data validation
- GraphQLError: Query root type must be provided
- How to express an union type in a GraphQL InputType
- Nestjs passport-facebook Invalid OAuth access token
- 'NestJS RabbitMQ Microservice'
- unable to read data from decoded token jwt verify
- nestjs firebase authentication
- How to send data from laravel to a redis queue implemented using Bull queue
- MongoParseError: Invalid message size: 1347703880, max allowed: 67108864 (NestJS & MongoDB Docker Container)
- aws-sdk in node app after deploying does not start
- How to use Global module in NestJs
- TypeORM: Select RANDOM() with a nested relation using QueryBuilder
- Nest js - httpservice add proxy
- Why does nestjs framework use a transport layer different than HTTP in a microservices approach?
- Restart the application when some file changes
Related Questions in MIKRO-ORM
- Is it possible to use @InjectRepository without registering entities in sub-modules?
- Ben Awad vid tutorial problemwith npx mikro-orm migration:create
- Connecting MikroORM migration with Postgresql? npx command is failing. What am I missing?
- Mikro-orm different package versions compatability
- How to extend custom BaseRepository with Mikro ORM EntityRepository
- I can't read env values in mikro-orm.config.ts
- How to properly use MirkoORM custom repository with NestJS?
- MikroORM referenced entity JSON value
- Mikro-ORM nested collection type safe access
- How to define an array in Mikro-ORM abstract base entity?
- Mikro-ORM still cascades while persisting even when deactivated
- TypeError: domain.enter is not a function
- I have ERR_PACKAGE_PATH_NOT_EXPORTED error in a NestJS project if MikroORM upgraded to v5.1 and built with WebPack
- I use mikro-orm (with mongoDB) in my typescript project. How to forbid remove entity if it connected with another entity? Relation manytomany
- How to properly specify / work with postgres text type in mikro-orm?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since v6.0.0 you can use
excludeoption, which will omit the provided properties and select everything else.https://mikro-orm.io/docs/entity-manager#partial-loading