Is it possible to connect to an Apollo GraphQL server using a non-Apollo client such as graphql.js - https://github.com/f/graphql.js?
If so what endpoint should one use? Or is there another approach?
This fails with a HTTP 500 server error:
const graph = graphql('http://localhost:3013/graphql', {
method: 'POST' // POST by default.
});
const res = graph(`query getQuestions {
questions {
id,
question
}
}
`);
res().
then((result) => console.log(result))
.catch((err) => console.log(err));