I am new to mongo. I have 5 collections and I need to execute a single query to check if any document matches the condition {"objectName":"namevalue"} in any of these collections. If so then I need to take those collection(s) and use it for another query. I am using a java driver for mongo. How do i do this?
thanks in advance...