3 ms·
No, you don't need Apollo or Relay to make the GraphQL work. The query of a GraphQL system is a string that represent the value of a GraphQL script. You can s
by fefb 8y ago
No, you don't need Apollo or Relay to make the GraphQL work.
The query of a GraphQL system is a string that represent the value of a GraphQL script. You can send this string using any protocol that you want, usually is by http with the verb POST. For execute the script in the server, in NodeJS for example, you just pass the string to a function that returns a promise. When the process is done you sent the response to the client.
For example, I am using pure GraphQL with serverlesss. The client post the script to my function, my function execute the graphql promise and response the client.
- Finnucane 8y agoThanks for the explanation. That seems reasonable.