Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphpack

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphpack

☄️ A minimalistic zero-config GraphQL server

  • 0.1.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
increased by15%
Maintainers
1
Weekly downloads
 
Created
Source

graphpack

A minimalistic zero-config GraphQL server

What is included

tbd

Install

With yarn:

yarn add graphpack

With npm:

npm install graphpack

Usage

Add following run script to your package.json:

  "scripts": {
    "start": "graphpack"
  },

Add your type definitions under src/schema.graphql and add some example types in SDL:

type Query {
  hello: String
}

Add your resolvers under src/resolvers.js:

const resolvers = {
  Query: {
    hello: () => 'world!',
  },
};

export default resolvers;

If you prefer to write the type definitions in JS and parse the queries with graphql-tag, just save your schema as a JS file under src/schema.js. It's also possible to create separate folders src/schema/index.js and src/resolvers/index.js.

FAQs

Package last updated on 16 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc