fus-marcom / bulletin-react

React/Redux version of the University Bulletin
MIT License
42 stars 18 forks source link

GraphQL error: Unknown type "postsConnection" #66

Closed jkhaui closed 6 years ago

jkhaui commented 6 years ago

Hey,

Thanks for the wonderful job getting this set up. I've changed the URI to point directly to my WordPress graphQL endpoint and removed the credentials requirement. However, in doing so, I get an error when loading the home page stating "GraphQL error: Unknown type "postsConnection"" (message appears where the posts should be).

Cheers, Jordan

jkhaui commented 6 years ago

Ah don't worry, sorted it.

For anyone who's wondering, if you're using the latest version of WP GraphQL, the query in fragments.js should be on "RootPostsConnection" instead of "postsConnection"