/ / Google Cloud Datastore JSON for a Array of Keys - tablice, json, klucz, google-cloud-datastore

Google Cloud Datastore JSON for a Array of Keys - tablice, json, klucz, google-cloud-datastore

Próbowałem tego JSON w Google Datastore Console, aby utworzyć właściwość jako tablicę kluczy (relacja jeden-do-wielu), ale to nie działa:

{
"values": [
{
"keyValue": key(user, 1234567890123456)
},
{
"keyValue": key(user, 6544567890123456)
},
]
}

Odpowiedzi:

0 dla odpowiedzi № 1

Zobacz format JSON: https://cloud.google.com/datastore/docs/reference/rest/v1/Key

JSON będzie podobny:

{
"values": [
{
"keyValue": {
"path": [
{
"kind": "user",
"id": "1234567890123456"
}
]
}
},
{
"keyValue": {
"path": [
{
"kind": "user",
"id": "6544567890123456"
}
]
}
}
]
}