Skip to content
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

expose original mongo.DB/Collection for senior usage #301

Open
chenyanzz opened this issue Sep 12, 2023 · 3 comments
Open

expose original mongo.DB/Collection for senior usage #301

chenyanzz opened this issue Sep 12, 2023 · 3 comments
Labels
question Further information is requested

Comments

@chenyanzz
Copy link

I want to check the Timeout property of a Index, and I cannot get mongo.Collection.Index() from outside.
Please expose mongo.collection to coders, and expose all mongo Index operations (such as getAll, find, ...)

@jiangz222
Copy link
Collaborator

I think Qmgo should implement the missing features instead of your suggestions.

@jiangz222 jiangz222 added the question Further information is requested label Sep 28, 2023
@chenyanzz
Copy link
Author

I think Qmgo should implement the missing features instead of your suggestions.

Some APIs in mongo-driver is good enough, there's no need to encapsule them. Exposing them is enough.
Such as the CreateIndex, "+field1" is just similar to {"field": 1}, but lose the extensibility to use geometry, expire or else.

@ghost
Copy link

ghost commented Jun 2, 2024

我也认为应该是实现这些功能, 而不是继承

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants