GQLoom

Apollo

Apollo Server is an open-source, spec-compliant GraphQL server that's compatible with any GraphQL client, including Apollo Client. It's the best way to build a production-ready, self-documenting GraphQL API that can use data from any source.

Installation

npm i graphql @apollo/server @gqloom/core

Usage

import {  } from "@gqloom/core"
import {  } from "@apollo/server"
import {  } from "@apollo/server/standalone"
import {  } from "./resolvers"
 
const  = ()
const  = new ({  })
 
(, {
  : { : 4000 },
}).(({  }) => {
  .(`🚀  Server ready at: ${}`)
})

Context

The default context for Apollo Server is an empty object, you need to pass the context to the resolvers manually. See the Apollo Server documentation for more information.

On this page