You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After debugging the whole read process, I'm finding some things that I don't really understand.
My backend offers a catalog with multiple nested tables and it's relationships. The catalog parse works as expected, assigning relationships.
There's a parent table that has a few other children tables:
table 1: [
field1,
field2,
table2: [
field1,
table3: [
field 1, field 2
]
]
]
When it comes to read operation, server is responding with all the expected data, but there's this line:
// Check if we should return this table with its nested child table's data as nested
else if (this._jsdo._nestChildren) {
data = this._getDataWithNestedChildren(this._data);
}
else {
data = this._getRelatedData();
}
The property _nestChildren is never true. Process goes to getRelatedData function, and there it simply ends returning the _data property, wich doesn't contain the nested table's records.
The _nestChildren property is only set to true in the _getDataObjectAsNested function, but this function is never called.
So what's happening here? Am I asking the JSDO something it can't do? Because we were told it could.
The text was updated successfully, but these errors were encountered:
After debugging the whole read process, I'm finding some things that I don't really understand.
My backend offers a catalog with multiple nested tables and it's relationships. The catalog parse works as expected, assigning relationships.
There's a parent table that has a few other children tables:
When it comes to read operation, server is responding with all the expected data, but there's this line:
The property _nestChildren is never true. Process goes to getRelatedData function, and there it simply ends returning the _data property, wich doesn't contain the nested table's records.
The _nestChildren property is only set to true in the _getDataObjectAsNested function, but this function is never called.
So what's happening here? Am I asking the JSDO something it can't do? Because we were told it could.
The text was updated successfully, but these errors were encountered: