BE-Mates-Rates - HOST
The backend of our Mates Rates app that list reviews of restaurants your friends have been to. In here will be the database and the server
{
restaurant(id: "5fad52e16b765b6024a6da3a") {
id
name
address
cuisine
website
logo
information
phone
description
# city type
city {
id
name
}
# review type
reviews {
id
rating
body
}
}
}
{
user(id: "5fad52e16b765b6024a6da5d") {
id
name
username
avatarURL
# user type
friends {
id
name
avatarURL
...
}
#restaurant type
wishlist {
id
name
cuisine
logo
...
}
#review type
reviews {
id
rating
body
...
}
}
} {
reviews {
id
body
rating
# user type
user_id {
id
name
avatarURL
...
}
# restaurant type
restaurant_id {
id
name
cuisine
...
}
}
}
{
# user type
users {
id
name
username
avatarURL
# user type
friends {
id
name
avatarURL
...
}
#restaurant type
wishlist {
id
name
cuisine
logo
...
}
#review type
reviews {
id
rating
body
...
}
}
}
{
# restaurant type
restaurants {
id
name
address
cuisine
website
logo
information
phone
description
city {
id
name
}
# review type
reviews {
id
rating
body
...
}
}
}{
# review type
reviews {
id
body
rating
# user type
user_id {
id
name
avatarURL
...
}
# restaurant type
restaurant_id {
id
name
cuisine
logo
...
}
}
}