ericsonluciano
03/06/2018, 12:36 PMtype Location {}
jut include it as Country: String!
City: String!
allpwrfulroot
03/08/2018, 2:33 PMericsonluciano
03/08/2018, 3:00 PMtype Location {
city: String!
country: String!
}
type Restaurant {
id: ID! isUnique
location: Location!
}
or
type Restaurant {
id: ID! isUnique
city: String!
country: String
}
which is i need to filter the country and city i’m not sure what is the best in this implementation since i’m designer and just trying to explore GraphQL and React 🙂allpwrfulroot
03/08/2018, 3:40 PMericsonluciano
03/08/2018, 3:53 PMdylan
03/08/2018, 9:48 PMtype Location {
// ...
restaurants: [Restaurant]!
}
which will require some work to transition to, but would be easier if you started with the first, "normalized", version (where Restaurant & Location are already split up).dylan
03/08/2018, 9:50 PM