Couchbase N1QL join query
need help with a query in Couchbase enviroment. Both document 1 and document 2 is in the same bucket. First the query will get the document message1 using this query: SELECT uid, message, sent_by FROM bucket USE KEYS "message1" Second, it need to get username from document 2. How can i create a join statement that will fetch username from a given document name, using the query above? Overview Document 1 document name = message1 [ { "uid": "1", "message": "hello", "sent_by": "username" } ] Document 2 document name = user1 [ { "username": "username" } ] Assuming that the name of Document2 is