qmgo icon indicating copy to clipboard operation
qmgo copied to clipboard

expose original mongo.DB/Collection for senior usage

Open chenyanzz opened this issue 1 year ago • 3 comments

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, ...)

chenyanzz avatar Sep 12 '23 08:09 chenyanzz

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

jiangz222 avatar Sep 28 '23 07:09 jiangz222

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.

chenyanzz avatar Oct 29 '23 03:10 chenyanzz

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

888go avatar Jun 02 '24 03:06 888go