Socket
Socket
Sign inDemoInstall

postgraphile-core

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgraphile-core - npm Package Compare versions

Comparing version 4.0.0-rc.11 to 4.0.0-rc.12

2

LICENSE.md
The MIT License (MIT)
=====================
Copyright © `2017` Benjie Gillam
Copyright © `2018` Benjie Gillam

@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person

@@ -101,3 +101,8 @@ "use strict";

});
memoizeCache = JSON.parse(cacheString);
try {
memoizeCache = JSON.parse(cacheString);
}
catch (e) {
throw new Error(`Failed to parse cache file '${readCache}', perhaps it is corrupted? ${e}`);
}
}

@@ -178,3 +183,3 @@ if (readCache || writeCache) {

if (writeCache) {
writeCache().catch(abort);
await writeCache().catch(abort);
}

@@ -181,0 +186,0 @@ return schema;

{
"name": "postgraphile-core",
"version": "4.0.0-rc.11",
"version": "4.0.0-rc.12",
"description": "",

@@ -24,4 +24,4 @@ "main": "node8plus/index.js",

"@types/graphql": "^0.13.4",
"graphile-build": "4.0.0-rc.11",
"graphile-build-pg": "4.0.0-rc.11"
"graphile-build": "4.0.0-rc.12",
"graphile-build-pg": "4.0.0-rc.12"
},

@@ -28,0 +28,0 @@ "devDependencies": {

# postgraphile-core
This module implements a compatibility layer between PostGraphile v4 and
`graphile-build`, loading the relevant `graphile-build-pg` plugins and
augmenting the inflector depending on the PostGraphile options provided.
<span class="badge-patreon"><a href="https://patreon.com/benjie" title="Support Graphile development on Patreon"><img src="https://img.shields.io/badge/donate-via%20Patreon-orange.svg" alt="Patreon donate button" /></a></span>
[![Discord chat room](https://img.shields.io/discord/489127045289476126.svg)](http://discord.gg/graphile)
[![Package on npm](https://img.shields.io/npm/v/postgraphile-core.svg?style=flat)](https://www.npmjs.com/package/postgraphile-core)
![MIT license](https://img.shields.io/npm/l/postgraphile-core.svg)
[![Follow](https://img.shields.io/badge/twitter-@GraphileHQ-blue.svg)](https://twitter.com/GraphileHQ)
This module is the compatibility between the web layer of
[PostGraphile](https://graphile.org/postgraphile/) and the GraphQL schema
built with Graphile Engine. It loads the relevant `graphile-build-pg` plugins
and augments the inflector depending on the PostGraphile options provided.
Unless you want to use the low-level API you probably want to go to the

@@ -11,7 +18,7 @@ PostGraphile (previously 'PostGraphQL') repository instead:

It's also suitable for usage in your own application, but please be aware you
It's suitable to use this module in your own application, but please be aware you
need to bring your own security in the form of an authenticated `pgClient` (see
below).
For more information about `postgraphile` and `graphile-build` please see the
For more information about PostGraphile and Graphile Engine please see the
documentation at [graphile.org](https://www.graphile.org/).

@@ -21,5 +28,6 @@

This is the function you're most likely to use in production, it will return a
promise to a GraphQL schema. You are responsible in the calling code for
implementing security by passing a pre-authenticated `pgClient` on `context`.
This is the function you're most likely to use in production, it will return
a promise to a GraphQL schema. You are responsible in for implementing
security by passing a pre-authenticated `pgClient` inside the GraphQL
`context` when you resolve a GraphQL query or mutation.

@@ -60,3 +68,3 @@ Example:

process.env.DATABASE_URL,
["users_schema", "posts_schema"],
["app_public"],
{

@@ -116,4 +124,2 @@ dynamicJson: true,

TODO: ensure this example works.
To see how this works in a real application, check out

@@ -120,0 +126,0 @@ [`withPostGraphileContext` in

Sorry, the diff of this file is not supported yet

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