@graphile-contrib/pg-many-to-many
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
@@ -11,3 +11,3 @@ "use strict"; | ||
} = relationship; | ||
const { inflection, graphql: { GraphQLNonNull, GraphQLList }, grafast: { ConnectionStep, EdgeStep }, getTypeByName, options: { pgForbidSetofFunctionsToReturnNull = false }, nullableIf, } = build; | ||
const { inflection, graphql: { GraphQLNonNull, GraphQLList }, grafast: { ConnectionStep, assertEdgeCapableStep }, getTypeByName, options: { pgForbidSetofFunctionsToReturnNull = false }, nullableIf, } = build; | ||
const leftTableTypeName = inflection.tableType(leftTable.codec); | ||
@@ -29,7 +29,3 @@ const junctionTypeName = inflection.tableType(junctionTable.codec); | ||
}, () => ({ | ||
assertStep($step) { | ||
if (!($step instanceof EdgeStep)) { | ||
throw new Error(`Expected ${$step} to be an EdgeStep`); | ||
} | ||
}, | ||
assertStep: assertEdgeCapableStep, | ||
description: `A \`${rightTableTypeName}\` edge in the connection, with data from \`${junctionTypeName}\`.`, | ||
@@ -36,0 +32,0 @@ fields: ({ fieldWithHooks }) => { |
{ | ||
"name": "@graphile-contrib/pg-many-to-many", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"description": "Add connection fields for many-to-many relations", | ||
@@ -23,6 +23,13 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/eslint-parser": "^7.23.3", | ||
"@babel/plugin-transform-modules-commonjs": "^7.23.3", | ||
"@babel/preset-env": "^7.23.5", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@dataplan/pg": "^0.0.1-beta.1", | ||
"@tsconfig/node16": "^1.0.3", | ||
"@typescript-eslint/eslint-plugin": "^6.13.1", | ||
"@typescript-eslint/parser": "^6.13.1", | ||
"eslint": "^8.28.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-graphile-export": "^0.0.2-beta.3", | ||
"eslint-plugin-jest": "^27.1.5", | ||
@@ -29,0 +36,0 @@ "eslint-plugin-prettier": "^4.2.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81664
23
737