Open
Description
For example, if i have a booking, i can see who else booked the same place and when. I can fetch their email, personal data etc.
{
viewer {
me {
lastName
}
bookings {
place {
name
bookings {
bookee {
firstName
lastName
email
}
}
}
}
}
}
Response
{
"data": {
"viewer": {
"me": {
"lastName": "Smith"
},
"bookings": [
{
"place": {
"name": "Mushroom Dome Cabin: #1 on airbnb in the world",
"bookings": [
{
"bookee": {
"firstName": "Karl",
"lastName": "Marx",
"email": "[email protected]"
}
},
{
"bookee": {
"firstName": "Adam",
"lastName": "Smith",
"email": "[email protected]"
}
}
]
}
}
]
}
}
}
Hmm interesting, Karl will also be at Mushroom Dome!
This is a problem i ran into, not only in this server example, but also in my own and other peoples server code. As soon as we have cyclic model references, hiding data becomes very complex.
Activity