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

bs-graphql

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-graphql

BuckleScript binding for graphql-js

  • 0.3.0
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

bs-graphql

npm version

BuckleScript binding for graphql-js.

Installation

Since you can only have one instance type of graphql schema in your dependency tree, we leave you the discretion of managing the graphql package yourself.

npm install --save graphql bs-graphql
# or
yarn add graphql bs-graphql

As always, you will need to indicate to BuckleScript that the binding is available.

bsconfig.json

{
  ...
  "bs-dependencies": [
    "bs-graphql"
  ]
}

Usage

WARNING: This package has been published so far with the only goal of being usable for simple graphql server development. For now, you can only count on graphql and buildSchema functions alongside a sugared call to graphql: run. You are obviously welcome to contribute any other missing part!

You can use this binding to build and execute some simple GraphQL schemas:

let schema = GraphQL.Utilities.buildSchema "type Query { me: User } type User { name: String }";
let rootValue = {"me": fun () => {"name": "reason"}};
Js.log (GraphQL.run schema ::rootValue "{ me { name } }");

Keywords

FAQs

Package last updated on 20 Aug 2017

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