-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow mongodb projection #3756
Allow mongodb projection #3756
Conversation
We can't go with such changes. If we keep going with mongodb-specific changes entity-manager/repository is going to be a mess for rdbms and we'll always be blocked on some absolute incompatible features. I suggest to remove dependency of MongoEntityManager from EntityManager (e.g. remove extends) and completely re-implement MongoEntityManager with mongodb-specific features. |
Seams reasonable, could you provide some initial code/steps to get to that? I don't feel confident enough to take that task ¯_(ツ)_/¯ |
|
why am I getting redirected to here when no solution is given... |
@rustamwin I am trying to understand your pull request: Why is it necessary to add a new since sth like Thanks! |
because |
@rustamwin I'm afraid I dont understand. I know that for "select" syntax in MongoDB, you have to use |
Is this going to be merged? Would be nice to have this support. |
waiting for this merge. projection is awesome feature in mongoDb |
Is this going to be merged? I think this will help my situation (and probably a lot of others, by the look of it). |
Won't be merged before this:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@oussaki TypeORM is an Open Source project. Feel free to contribute to this pull request yourself. Otherwise I doubt demanding features from volunteers as if they owe you something will be helpful to anyone. I found this etiquette guide to make sense in most situations |
@phil294 I agree with you - one, on your most recent comment about courtesy and etiquette. Thank you. But secondly, on reusing select. Reusing select would bypass a lot of the work pleerock had suggested and would maintain a smaller, more cohesive API. We wouldn't have lots of custom mongodb options. I'd personally prefer that we had a not as great mongodb experience for a more consistent experience across all of these data stores. If you're after something with super deep mongodb feature support a generic ORM probably ain't gonna cut it. It'll never have feature parity with something that's built out with mongodb as it's primary goal. It can't. I also see that more or less development on this PR has stalled for a few years. I'm gonna close it out because otherwise we end up with folks spamming it with.. well, various comments that aren't constructive towards the PR itself. Please feel free to open a new PR and definitely continue discussion of this feature request in #3266 |
Fixes #3266