Hello team,
We have tried to query Entity view which has a property properties of type view Property which is a reverse direct relation.
We are using the query endpoint and the instances.query() sdk method to do so.
We want the details of properties to come in the select object of Entity. Providing the query below:
{
"with": {
"0": {
"limit": 50,
"nodes": {
"filter": {
"and": [
{
"matchAll": {}
},
{
"hasData": [
{
"type": "view",
"space": "slb-pdm-dm-governed",
"externalId": "Entity",
"version": "1_7"
}
]
},
{
"or": [
{
"equals": {
"property": [
"node",
"externalId"
],
"value": "fba80a5d3b994db698e74b77fb96f1de"
}
}
]
}
]
}
}
},
"0_6": {
"limit": 10000,
"nodes": {
"from": "0",
"through": {
"source": {
"type": "view",
"space": "slb-pdm-dm-governed",
"externalId": "Property",
"version": "1_7"
},
"identifier": "entity"
},
"direction": "inwards",
"filter": {
"and": [
{
"matchAll": {}
},
{
"hasData": [
{
"type": "view",
"space": "slb-pdm-dm-governed",
"externalId": "Property",
"version": "1_7"
}
]
}
]
}
}
}
},
"select": {
"0": {
"sources": [
{
"source": {
"type": "view",
"space": "slb-pdm-dm-governed",
"externalId": "Entity",
"version": "1_7"
},
"properties": [
"properties"
]
}
]
},
"0_6": {
"sources": [
{
"source": {
"type": "view",
"space": "slb-pdm-dm-governed",
"externalId": "Property",
"version": "1_7"
},
"properties": [
"name"
]
}
]
}
},
"includeTyping": true
}
But we are not getting any properties details in the entity response.
Basically, we are expecting all the data of properties to come in the Entity response.
Please tell us the correct Select syntax to achieve this.