Sample Header Ad - 728x90

Complex queries in CouchDB across multiple documents

2 votes
2 answers
1398 views
I'm relatively new to CouchDB (more specifically Cloudant if it matters) and I'm having a hard time wrapping my head around something. Assume the following (simplified) document examples: { "docType": "school", "_id": "school1", "state": "CA" } { "docType": "teacher", "_id": "teacher1", "age": "40", "school": "school1" } I want to find all the teachers aged 40 in California. Maybe my mind is still stuck on SQL world, but I'm having a hard time understanding how to run a query that uses data from different documents... PS. let me know if this is more suited to StackOverflow...
Asked by nute (313 rep)
Jun 13, 2019, 06:47 AM
Last activity: May 29, 2025, 11:02 PM