fogine / couchbase-odm

CouchbaseODM is a promise-based Node.js ODM for Couchbase
https://fogine.github.io/couchbase-odm
MIT License
12 stars 3 forks source link

we need proper n1q1 example! #4

Closed jurajsimbs closed 8 years ago

jurajsimbs commented 8 years ago

Please complete this peace of ... nothing (!!) here: https://fogine.github.io/couchbase-odm/tutorial-3d.n1ql.html

fogine commented 8 years ago

Hello, the n1ql documentation section will be updated once n1ql support is implemented. Currently (as for v1.0-rc.3) there are no n1ql features implemented in the ODM.

However, there is available Promise based method StorageAdapter.query which is using native couchbase sdk query method through which you can execute n1ql / view queries in meantime.

jurajsimbs commented 8 years ago

!!! then delete this method from sources - I was confused! https://github.com/fogine/couchbase-odm/blob/master/lib/storageAdapter.js#L360-372

fogine commented 8 years ago

Oh, You're right that I could stress existence of the StorageAdapter.query method in the tutorial section of the docs.

Currently (as for v1.0-rc.3) there are no n1ql features implemented in the ODM.

I meant features which would bring additional value / functionality which is not available in native couchbase sdk. StorageAdapter.query is just Promise based variant of Bucket.query from native couchbase sdk.

I'll add note about the method to the tutorial section. Thanks.