Use the field’s path as key
{
"data": {
"user": CacheReference("data.user"),
"comments": [CacheReference("data.comments[0]")],
},
"data.user": {
"email": "
[email protected]",
"login": "BoD",
"name": "Benoit Lubek"
},
"data.comments[0]": {
"title": "Write retrowave slides!",
"checked": true,
"user": CacheReference("data.comments[0].user")
},
"data.comments[0].user": {
"login": "BoD",
"avatarUrl": "https://"
}
}
Duplication