0.3.0 • Published 7 years ago

atlas-temp v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

@segment/atlas

Atlas is a minimalistic framework for GraphQL servers

How to use

Install it:

npm install @segment/atlas graphql

and add a script to your package.json like this:

{
  "scripts": {
    "start": "atlas"
  }
}

After that, the file-system is the main API.

Populate ./schema/Query.js inside your project:

module.exports.typeDef = `
  type Query {
    hello: String!
  }
`

module.exports.Query = {
  hello: async () => 'world'
}

and then just run npm start and go to http://localhost:3000.

Check out the examples for further details.

Configuration

Configuration can be added to your package.json like this:

{
  "atlas": {
    "graphiql": false
  }
}

Available options are:

  • graphiql: Boolean