Tutorial: How to build a GraphQL server
Jonas Helfer

I think this is a syntax quirk that i’m not aware of..

return res[0].fortune.message

is undefined — although res[0].fortune does return the expected object. I had to use bracket notation instead:


Anyone know why the dot notation was spat out? Wondering if it’s anything to do with Babel.

Like what you read? Give Dan Minshew a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.