Skip to content

Commit

Permalink
Make entity references trivially (de)serializable.
Browse files Browse the repository at this point in the history
Although the Reference class was convenient within a single runtime, it
posed some unnecessary challenges for serialization and deserialization.
  • Loading branch information
benjamn committed Aug 8, 2019
1 parent 3c6b155 commit 01e0cc5
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ Object {
},
"foo": Object {
"e": 4,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -28,11 +25,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -49,11 +43,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -70,11 +61,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -91,11 +79,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -112,11 +97,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -129,11 +111,8 @@ Object {
},
"foo": Object {
"e": 4,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -150,11 +129,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -171,11 +147,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -192,11 +165,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -213,11 +183,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -234,11 +201,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -251,11 +215,8 @@ Object {
},
"foo": Object {
"e": 4,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -272,11 +233,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -293,11 +251,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -314,11 +269,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": undefined,
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -335,11 +287,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand All @@ -356,11 +305,8 @@ Object {
"e": 4,
"f": 5,
"g": 6,
"h": Reference {
"generated": false,
"id": "bar",
"type": "id",
"typename": "Bar",
"h": Object {
"__ref": "bar",
},
},
}
Expand Down
Loading

0 comments on commit 01e0cc5

Please sign in to comment.