Socket
Socket
Sign inDemoInstall

graphile-build

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphile-build - npm Package Compare versions

Comparing version 4.0.0-rc.6 to 4.0.0-rc.8

6

package.json
{
"name": "graphile-build",
"version": "4.0.0-rc.6",
"version": "4.0.0-rc.8",
"description": "Build a GraphQL schema from plugins",

@@ -31,5 +31,5 @@ "main": "node8plus/index.js",

"dependencies": {
"@types/graphql": "0.13.4",
"@types/graphql": "^0.13.4",
"debug": ">=2 <3",
"graphql-parse-resolve-info": "4.0.0-rc.6",
"graphql-parse-resolve-info": "4.0.0-rc.8",
"lodash": ">=4 <5",

@@ -36,0 +36,0 @@ "lru-cache": ">=4 <5",

# graphile-build
graphile-build provides you with a framework to build high-performance
extensible GraphQL APIs by combining plugins and using advanced look-ahead
features. Plugins may implement best practices (such as the Node interface) or
might build parts of your schema automatically (e.g. `graphile-build-pg` which
will automatically generate types and fields based on your PostgreSQL database
schema).
graphile-build provides a framework to build high-performance extensible
GraphQL APIs by combining plugins and using advanced query look-ahead features.
Each plugin would typically have it's own small purpose (such as implementing
the Node interface, or adding `query: Query` to mutation payloads, or watching
an external source for schema changes) and by combining these plugins together
you get a large, powerful, and manageable GraphQL schema. Plugins enable you
to make broad changes to your GraphQL schema with minimal code and without
sacrificing performance.
An example of an application built on `graphile-build` is [PostGraphile
v4+](https://github.com/graphile/postgraphile) which allows you to run just
one command to instantly get a fully working and secure GraphQL API up and
running based on your PostgreSQL database schema.
v4+](https://github.com/graphile/postgraphile) which allows you to run just one
command to instantly get a fully working and secure GraphQL API up and running
based on your PostgreSQL database schema. The `graphile-build-pg` module
contains the plugins that are specific to PostgreSQL support (`graphile-build`
itself does not know about databases).
**For in-depth documentation about `graphile-build`, please see [the graphile
documentation website](https://www.graphile.org/).**
documentation website](https://www.graphile.org/).** The below just serves as a
limited quick-reference for people already familiar with the library.
The below just serves as a limited quick-reference for people already familiar
with the library.
**Please note: rather than using the very raw plugin interface as shown below,
you may want to use the helpers in `graphile-utils`.**

@@ -37,3 +42,6 @@ ## Usage

builder.hook("GraphQLObjectType:fields", (fields, build) => {
const { extend, graphql: { GraphQLInt } } = build;
const {
extend,
graphql: { GraphQLInt },
} = build;
return extend(fields, {

@@ -44,4 +52,4 @@ random: {

sides: {
type: GraphQLInt
}
type: GraphQLInt,
},
},

@@ -53,4 +61,4 @@ resolve(_, { sides = myDefaultMax }) {

);
}
}
},
},
});

@@ -69,3 +77,3 @@ });

myDefaultMin: 1,
myDefaultMax: 6
myDefaultMax: 6,
});

@@ -72,0 +80,0 @@

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