|
1 | 1 | # Changes
|
2 | 2 |
|
| 3 | +## v1.1.0 |
| 4 | + |
| 5 | +- Add support for --classic-ids. |
| 6 | +- Re-order operations so that deleteOthers is done before inserting a |
| 7 | + new row. |
| 8 | +- Fix parenthesis wrapping for tables with multiple keys. |
| 9 | + |
3 | 10 | ## v1.0.1
|
4 | 11 |
|
5 |
| - * Correctly release the savepoint on error (thanks @sijad). |
6 |
| - |
| 12 | +- Correctly release the savepoint on error (thanks @sijad). |
| 13 | + |
7 | 14 | ## v1.0.0
|
8 | 15 |
|
9 |
| - * Bump dependencies. |
10 |
| - * Guard against creating updater fields where constraint is not available. |
| 16 | +- Bump dependencies. |
| 17 | +- Guard against creating updater fields where constraint is not available. |
11 | 18 |
|
12 | 19 | ## v1.0.0-alpha.22
|
13 | 20 |
|
14 |
| - * Fix bug where if an update mutation was called that did not locate |
15 |
| - a row, we'd still try and extract the PKs. |
16 |
| - |
| 21 | +- Fix bug where if an update mutation was called that did not locate |
| 22 | + a row, we'd still try and extract the PKs. |
| 23 | + |
17 | 24 | ## v1.0.0-alpha.21
|
18 | 25 |
|
19 |
| - * Really fix `updateByNodeId`. Thanks for the report @ken0x0a! |
| 26 | +- Really fix `updateByNodeId`. Thanks for the report @ken0x0a! |
20 | 27 |
|
21 | 28 | ## v1.0.0-alpha.20
|
22 | 29 |
|
23 |
| - * Fix case where a mutation specified `nestedMutationField: null`. |
| 30 | +- Fix case where a mutation specified `nestedMutationField: null`. |
24 | 31 |
|
25 | 32 | ## v1.0.0-alpha.19
|
26 | 33 |
|
27 |
| - * `deleteOthers` now is not in the schema where the foreign table |
28 |
| - has `@omit delete`. |
29 |
| - * Fixed error that prevented `updateByNodeId` from working. |
| 34 | +- `deleteOthers` now is not in the schema where the foreign table |
| 35 | + has `@omit delete`. |
| 36 | +- Fixed error that prevented `updateByNodeId` from working. |
30 | 37 |
|
31 | 38 | ## v1.0.0-alpha.18
|
32 | 39 |
|
33 |
| - * Correctly handle `null` values to connect and update fields. |
| 40 | +- Correctly handle `null` values to connect and update fields. |
34 | 41 |
|
35 | 42 | ## v1.0.0-alpha.17
|
36 | 43 |
|
37 |
| - * Add support for `@fieldName` and `@foreignFieldName` smart comments on |
38 |
| - foreign keys to match those used in PostGraphile. The original |
39 |
| - `@forwardMutationName` and `@reverseMutationName` smart comments will |
40 |
| - remain to allow for renaming the fields just for nested mutations. |
| 44 | +- Add support for `@fieldName` and `@foreignFieldName` smart comments on |
| 45 | + foreign keys to match those used in PostGraphile. The original |
| 46 | + `@forwardMutationName` and `@reverseMutationName` smart comments will |
| 47 | + remain to allow for renaming the fields just for nested mutations. |
41 | 48 |
|
42 | 49 | ## v1.0.0-alpha.16
|
43 | 50 |
|
44 |
| - * Support `deleteOthers` where there are no other records modified. Thanks |
45 |
| - @srp. |
| 51 | +- Support `deleteOthers` where there are no other records modified. Thanks |
| 52 | + @srp. |
46 | 53 |
|
47 | 54 | ## v1.0.0-alpha.15
|
48 | 55 |
|
49 |
| - * The patch type for nested updates now correctly omits the keys that are |
50 |
| - the subject of the nested mutation. |
| 56 | +- The patch type for nested updates now correctly omits the keys that are |
| 57 | + the subject of the nested mutation. |
51 | 58 |
|
52 | 59 | ## v1.0.0-alpha.14
|
53 | 60 |
|
54 |
| - * Support for updating nested records. |
| 61 | +- Support for updating nested records. |
55 | 62 |
|
56 | 63 | ## v1.0.0-alpha.13
|
57 | 64 |
|
58 |
| - * 1:1 relationships no longer allow a list of objects, or allow multiple |
59 |
| - operations, preventing a constraint violation. |
| 65 | +- 1:1 relationships no longer allow a list of objects, or allow multiple |
| 66 | + operations, preventing a constraint violation. |
60 | 67 |
|
61 | 68 | ## v1.0.0-alpha.11
|
62 | 69 |
|
63 |
| - * *BREAKING* One-to-one relationships are now correctly named in the singular. To |
64 |
| - keep using the old behaviour, use the `nestedMutationsOldUniqueFields` option. |
65 |
| - * *BREAKING* The `connect` field has been removed. In its place is `connectByNodeId` |
66 |
| - which takes a nodeId, and `connnectBy<PK Fields>` for the table's primary key and |
67 |
| - each unique key. |
68 |
| - * Nested mutations on update mutations are now supported. |
69 |
| - * Existing rows can be now be `connected`. |
70 |
| - * Multiple actions per nested type may now be specified (i.e. create some records |
71 |
| - and connect others). |
72 |
| - * A new field has been added on nested mutations: `deleteOthers`. When set to `true`, |
73 |
| - any related rows not updated or created in the nested mutation will be deleted. To |
74 |
| - keep a row that is not being created or updated, specify it for update with no |
75 |
| - modified fields. |
76 |
| - * Relationships between two tables that have multiple relationships are now supported. |
77 |
| - Previously, the last constraint would overwrite the others. These will usually end |
78 |
| - up with some pretty awkward names, so the use of smart comments to name the relationships |
79 |
| - is recommended. |
80 |
| - * Improved test suite. |
| 70 | +- _BREAKING_ One-to-one relationships are now correctly named in the singular. To |
| 71 | + keep using the old behaviour, use the `nestedMutationsOldUniqueFields` option. |
| 72 | +- _BREAKING_ The `connect` field has been removed. In its place is `connectByNodeId` |
| 73 | + which takes a nodeId, and `connnectBy<PK Fields>` for the table's primary key and |
| 74 | + each unique key. |
| 75 | +- Nested mutations on update mutations are now supported. |
| 76 | +- Existing rows can be now be `connected`. |
| 77 | +- Multiple actions per nested type may now be specified (i.e. create some records |
| 78 | + and connect others). |
| 79 | +- A new field has been added on nested mutations: `deleteOthers`. When set to `true`, |
| 80 | + any related rows not updated or created in the nested mutation will be deleted. To |
| 81 | + keep a row that is not being created or updated, specify it for update with no |
| 82 | + modified fields. |
| 83 | +- Relationships between two tables that have multiple relationships are now supported. |
| 84 | + Previously, the last constraint would overwrite the others. These will usually end |
| 85 | + up with some pretty awkward names, so the use of smart comments to name the relationships |
| 86 | + is recommended. |
| 87 | +- Improved test suite. |
81 | 88 |
|
82 | 89 | ## v1.0.0-alpha.7
|
83 | 90 |
|
84 | 91 | Relationships using composite keys are now supported, and this has meant creating
|
85 | 92 | a custom field name for the nested mutation, rather than piggybacking an existing ID
|
86 |
| -field. See the examples below for the new GraphQL schema that is generated. |
| 93 | +field. See the examples below for the new GraphQL schema that is generated. |
0 commit comments