paint-brush
Three ways to structure your GraphQL code with Apollo Serverby@betaflag
29,519 reads
29,519 reads

Three ways to structure your GraphQL code with Apollo Server

by betaflag5mJanuary 15th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Structuring your code is probably the first task you will have to do when starting a new project. Of course, if you’re using a framework, you will probably get offered a default structure. This is because “convention over configuration” principle generally helps to get started a lot faster. However, when writing micro/small services in Node.js, I find frameworks too bloated because they come with many things that we either don’t need (ex: routing) or that we will swap with another lib at some point (ex: security). It’s also great to get to the basics to start your new app without the bloat and to handpick every dependency that we’re going to add. This way, if we’re writing multiple services with the same libraries, we come up with our own kind of framework that is perfectly suited for us. What a beautiful thing!

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Three ways to structure your GraphQL code with Apollo Server
betaflag HackerNoon profile picture
betaflag

betaflag

@betaflag

L O A D I N G
. . . comments & more!

About Author

betaflag HackerNoon profile picture
betaflag@betaflag

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite