Would you mind explaining how could we query to this application like you do in your tutorial?
I thought the only difference would be author/user and that Ryan uses a database instead of hard-coded data, however the query:
export default graphql(gql`
query posts {
id
title
user {
id
name
}
}
`)(PostList);
This query doesn’t work either:
export default graphql(gql`
query allPosts {
posts {
id
title
user {
id
name
}
}
}
`)(PostList);
Both return the error “posts is undefined”.
Edit: the old trick of posting it to figure it out one minute later, Ryan uses “/api” to forward requests, you use “/graphql”, is it possible to change it?






















