Hello, I’ve been building a booking application and my document looks like this:
{
"ref": Ref(Collection("Appointments"), "357754933714354380"),
"ts": 1677440557650000,
"data": {
"index": 241683429,
"name": "Claudio Giusti",
"instrument": "piano",
"time": "18",
"mobile": "7890"
}
}
let’s say I want to get the string under the ‘name’ section, how do I do that?
I tried this python string:
client.query(q.get(q.ref(q.collection("Appointments"), event["ref"].id()), {"data": {"name"}}))
but it returns
Unserializable object {'name'} of type <class 'set'>
How do i solve that? Thanks, I’m a newbie.