4 ms·
GraphQL looks cool, kind of fancy but simpler way to do some complex SQL without the SQL. Using the business as the root query would be a bit cumbersome, but m
by sleepingeights 9y ago
GraphQL looks cool, kind of fancy but simpler way to do some complex SQL without the SQL.
Using the business as the root query would be a bit cumbersome, but more like:
business(id: "garaje-san-francisco") {
reviewers {
user {
name
favorited_businesses
favorited_businesses(name: "garaje")
}
}
}
If they provide user queries, then something like:
user {
name
favorited_businesses
favorited_businesses(name: "garaje")
}