graphqlsilverstripesilverstripe-4

SilverStripe GraphQL many_many Query Fails In Production


If anyone could help me I’d be so grateful.

When I have my SilverStripe app running locally I can query many_many relationships with GraphiQL. But after I deploy my app on Heroku and run the exact same query with Postman against my deployed API I do not get the many_many data back. (I however still get the main data.) Does anyone know why this happens?

Here are some screenshots, and my source code here.

enter image description here enter image description here


Solution

  • If anyone else has this problem in the future, it was solved like this:

    enter image description here

    👍🏻