Solve issue with node code not being able to get the right graphql query working