New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graphile-contrib/pg-many-to-many

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphile-contrib/pg-many-to-many - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0-beta.2

src/PgManyToManyRelationPlugin.js

7

index.js
module.exports = function PgManyToManyPlugin(builder, options) {
builder.hook("build", build => {

@@ -11,3 +10,3 @@ const pkg = require("./package.json");

pkg.version
} requires graphile-build@^4.1.0-rc.2 in order to check dependencies (current version: ${
} requires graphile-build@^4.1.0 in order to check dependencies (current version: ${
build.graphileBuildVersion

@@ -28,3 +27,3 @@ })`

};
depends("graphile-build-pg", "^4.1.0-rc.2");
depends("graphile-build-pg", "^4.1.0");

@@ -36,4 +35,4 @@ // Register this plugin

});
require("./src/PgManyToManyRelationPlugin.js")(builder, options);
};
{
"name": "@graphile-contrib/pg-many-to-many",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Add connection fields for many-to-many relations",

@@ -27,3 +27,3 @@ "main": "index.js",

"pg": ">=6.1.0 <8",
"postgraphile-core": "^4.1.0-rc.2",
"postgraphile-core": "4.1.0",
"prettier": "1.14.2"

@@ -35,4 +35,4 @@ },

"files": [
"index.js"
"src"
]
}

@@ -5,2 +5,4 @@ # @graphile-contrib/pg-many-to-many

> Requires `postgraphile@^4.1.0` or `graphile-build-pg@^4.1.0`
Example:

@@ -24,10 +26,2 @@

## Installation
```
yarn add @graphile-contrib/pg-many-to-many
```
Requires `postgraphile@^4.1.0-rc.2` or `graphile-build-pg@^4.1.0-rc.2`
## Usage

@@ -37,9 +31,11 @@

### Usage - CLI
### CLI
```bash
yarn add postgraphile
yarn add @graphile-contrib/pg-many-to-many
npx postgraphile --append-plugins @graphile-contrib/pg-many-to-many
```
postgraphile --append-plugins @graphile-contrib/pg-order-by-related -c postgres:///my_db
```
### Usage - Library
### Library

@@ -49,3 +45,3 @@ ```js

const { postgraphile } = require("postgraphile");
const PgManyToMany = require("@graphile-contrib/pg-many-to-many");
const PgManyToManyPlugin = require("@graphile-contrib/pg-many-to-many");

@@ -56,7 +52,8 @@ const app = express();

postgraphile(process.env.DATABASE_URL, "app_public", {
appendPlugins: [PgManyToMany]
appendPlugins: [PgManyToManyPlugin],
graphiql: true,
})
);
app.listen(process.env.PORT || 3000);
app.listen(5000);
```

@@ -63,0 +60,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