This package has been deprecated

Author message:

use mini-graphql-server instead

mini-graphql

1.0.0 • Public • Published

A small GraphQL server

Install

git clone https://github.com/benjaminboruff/mini-graphql.git

cd mini-graphql && yarn

Usage
  • Development - watches and builds ES* in one terminal, and runs micro-dev in another.

    In one terminal:

    yarn dev:babel

    In another terminal:

    yarn dev:micro

  • Build and start server - compiles using babel, and starts the production micro server.

    yarn start

  • Make a production build in dist/

    yarn build

  • A simple client data request using curl

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

/mini-graphql/

    Package Sidebar

    Install

    npm i mini-graphql

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    18.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • bhboruff