Hi!
I am currently developing a website with RoR & Couchbase.
As of now, I am using an easy login setup with Omniauth and Facebook.
When I create documents on the site, it tags the documents with the userid
from the facebook hash, ex.
* <%= f.hidden_field :webOwner, :value => current_user.id %>*
An hidden attribute that is set to the current user id, where
current_user.id is the ID from the facebook hash.
What I want to know now is:
- Is it possible to emit only documents created by this ID from couchbase
with mapping function? like ;
*function(doc, meta) {*
* if (doc.type == "TFood" && doc.webOwner == current_user.id) {*
* emit(doc.fFoodName);*
* }*
*}*
( I know this does not work, but I just wanna display the information I am
looking for )
- or is there a way to iterate through only documents created by this
specific ID ?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.