I'm using RavenDB 5.1
I have a parent document
{
"ddt": "1313",
"operator": "Dadas",
"insertAt": "01/02/2021 12:15:47",
"code": "R2021.001",
"clientId": "cbaa9024-abf8-4575-8f44-c06bbb3d8a2e",
"@metadata": {
"@collection": "repairOrders"
}
}
and other documents in another collection
{
"name": "AZM2E",
"piva": "31137418148",
"@metadata": {
"@collection": "clients"
}
}
with RQL, I need a query that gives me:
{
"ddt": "1313",
"operator": "Dadas",
"insertAt": "01/02/2021 12:15:47",
"code": "R2021.001",
"clientId": "cbaa9024-abf8-4575-8f44-c06bbb3d8a2e",
"client": {
"name": "AZM2E",
"piva": "31137418148",
}
"@metadata": {
"@collection": "repairOrders"
}
}
I need to execute the query via REST API