You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-54Lines changed: 34 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
3
3
[](https://www.npmjs.com/package/@graphile-contrib/pg-order-by-related)
4
4
5
-
This Graphile Engine plugin adds additional enum values to the `orderBy` argument on connections, allowing you to order by columns in related tables.
5
+
This plugin adds additional enum values to the `orderBy` argument on
6
+
connections, allowing you to order by columns in related tables.
6
7
7
-
> Requires `postgraphile@^4.3.1` or `graphile-build-pg@^4.3.1`
8
+
> Requires `postgraphile@^5.0.0`
8
9
9
10
Example:
10
11
@@ -28,74 +29,53 @@ One-to-one and many-to-one relations are supported. For one-to-many relations, `
28
29
29
30
## Usage
30
31
31
-
Append this plugin and the additional `orderBy` options will be added to your schema.
To avoid naming conflicts, this plugin uses a `<TABLE>_BY_<KEY>` naming convention (e.g. `USER_BY_AUTHOR_ID__CREATED_AT_ASC`), similar to how related fields are named by default in PostGraphile v4.
63
-
64
-
You can override this by adding an inflector plugin. For example, the following plugin shortens the names by dropping the `<TABLE>_BY` portion (producing e.g. `AUTHOR_ID__CREATED_AT_ASC`):
55
+
To avoid naming conflicts, this plugin uses a `<TABLE>_BY_<KEY>` naming
0 commit comments