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
The relationship might be present for an entity but with data: null in case the relationships are not asked to be included but the API server has been implemented to return links to those resources.
// In this case we have requested just the root folder, so the children relationship is null but the relationships object is still present and populated with the links object.
Copy file name to clipboardexpand all lines: src/__tests__/__snapshots__/Deserializer.test.ts.snap
+19
Original file line number
Diff line number
Diff line change
@@ -94,3 +94,22 @@ exports[`Deserializer deserializes the second file system example (single entity
94
94
"name": "root",
95
95
}
96
96
`;
97
+
98
+
exports[`Deserializer deserializes the second jsonapi.org example (without relationships but with relationships.*.links and data:null) into an object graph 1`] =`
99
+
[
100
+
{
101
+
"author": null,
102
+
"comments": [],
103
+
"id": 1,
104
+
"title": "JSON:API paints my bikeshed!",
105
+
},
106
+
]
107
+
`;
108
+
109
+
exports[`Deserializer deserializes the third file system example (single entity with relationships.children.links) into an object graph 1`] =`
0 commit comments