0.3.0 • Published 8 years ago
atlas-temp v0.3.0
@segment/atlas
Atlas is a minimalistic framework for GraphQL servers
How to use
Install it:
npm install @segment/atlas graphqland 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
0.3.0
8 years ago