Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #a
  • #ap
  • #apo
  • #apollo
RSS: #apollo-server

#apollo-server

  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 23/01/2019

    Three ways to structure your #graphql code with Apollo Server
    ▻https://hackernoon.com/three-ways-to-structure-your-graphql-code-with-apollo-server-4788beed89d

    https://cdn-images-1.medium.com/max/1024/1*pD7qiEf4Z5GtP6H8ZiU1mg.jpeg

    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

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 13/11/2018

    Using #graphqlgen for our cloud stack
    ▻https://hackernoon.com/using-graphqlgen-for-our-cloud-stack-ae30c4b017a1?source=rss----3a8144ea

    https://cdn-images-1.medium.com/max/750/1*x1G3EqT6WQ1uQ4BMvIFmTQ.png

    TL;DR — Apollo Server & Typescript ⇒ graphqlgenAt Meeshkan, we were writing our own typescript interfaces for JS object representations of our #graphql schema, which proved to be error-prone and laborious.The new graphqlgen package by Prisma makes that crazy easy, but if you are not comfortable with GraphQL schemas yet, it can feel like another layer of incomprehension in an already incomprehensible stack. I wanted to take a moment to share a few key learnings from working with this new tool in case you are struggling to get started:How resolvers in Apollo Server actually work.Why graphqlgen is awesome.Why you should never use prisma types for your server’s schema’s types.Bonus: How to unit your test resolvers.How resolvers work in Apollo ServerBefore you can work with graphqlgen (...)

    #cloudstack #tech-stack #apollo-server

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire

Thèmes liés

  • #graphql