Hi Victor, How is it that you are getting multiple versions? What versions were you referring to in your original posting?
Also, how do you know that it is multiple versions of the same document, as opposed to separate documents? On Tue, Sep 30, 2014 at 7:30 AM, Victor Fernandez <[email protected]> wrote: > Hi Gerald, this version field is from Metadata? or your suggestion is to > add a field for versions? > > El martes, 30 de septiembre de 2014 09:28:26 UTC-5, Gerald escribió: >> >> Hi, >> >> If you have a version field, you can do something like: >> >> select * >> from my-bucket >> where ... >> order by version desc >> limit 1 >> >> On Monday, September 29, 2014 3:23:52 PM UTC-7, Victor Fernandez wrote: >>> >>> Hi I have the N1QL process running in my couchbase server, I'm making >>> REST petitions to make the querys but the problem is that te query returns >>> all the versions of a document. I only need the latest version, is there a >>> way to do this? >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Couchbase" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/couchbase/uivm95SLkFE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
