jaybauer
05/16/2018, 8:25 PMgraphql-yoga
questions or would just be clogging up the channel? 😛
EDIT: Alright, cool. I have a couple questions concerning passing data to the server to be used in something such as, say, nodemailer
. Originally I was under the impression that GraphQL was meant to replace REST and therefore libraries like axios
, but if I want to post data to the server (if it’s not something that I plan to send through the database and into a resolver), as far as I can tell something like axios
is still the way to go.
So, my original question: How do I do express functions like <http://express.post|express.post>
in graphlql-yoga
? I tried, using the default boilerplate, just doing <http://server.post|server.post>
on my GraphQLServer object but it’s not working as expected. I’m not sure if it’s something I’m doing wrong on the front-end or if that’s not the right syntax. And my secondary question, is that even the way to go?huv1k
05/16/2018, 8:27 PMZach
05/16/2018, 8:27 PMZach
05/16/2018, 8:27 PMphilch
05/17/2018, 2:49 AM