Three ways to structure your #graphql code with Apollo Server
▻https://hackernoon.com/three-ways-to-structure-your-graphql-code-with-apollo-server-4788beed89d
Three Ways to Structure GraphQL Code with Apollo ServerIn this article, we’re going to use Apollo Server and get started without any extra dependency. We will have to pick the folder structure for our project and we’ll be exploring three different ones alongside their pros and cons.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). (...)
#architecture #javascript #graphql-apollo-server #apollo-server