mini-graphql-server

0.2.1 • Public • Published

Build Status

mini-graphql-server: a command-line GraphQL server

mini-graphql-server is a simple, zero-configuration command-line GraphQL server. It is to be used for testing, local development, and learning.

Currently, only a small sample of books are available to query by author and/or title via:

{
    books { 
        author 
        title 
    }
}

Coming soon: schema, resolvers, and data file detection in a target directory.

Installation

yarn global add mini-graphql-server

Usage

To start server:

mini-graphql-server

To query:

  • open browser to http://localhost:3000/graphiql

  • or curl -XPOST -H "Content-Type:application/json" -d '{"query": "{books { title author}}"}' http://localhost:3000/graphql

Readme

Keywords

Package Sidebar

Install

npm i mini-graphql-server

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

6.03 kB

Total Files

13

Last publish

Collaborators

  • bhboruff