@graphile-contrib/pg-many-to-many
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
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 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17606
5
349
70
1