Thanks, one more thing, Since theres a field in the document saved with _id which is a generated unique id, when I need to do a relationship doc, do I use the _id or the document key?
I’m not sure I follow the question @keshav_m. If you have the document including the key already in scope, there’s no real reason to have a function to get it. It’s not quite the same as the N1QL statement, since you’d normally use the API which is built to use the structs defined in golang or []interface{} when working with N1QL query responses.