diff --git a/ndc-client/tests/json_schema/capabilities_response.jsonschema b/ndc-client/tests/json_schema/capabilities_response.jsonschema index 0a31b3c8..a99bfdf0 100644 --- a/ndc-client/tests/json_schema/capabilities_response.jsonschema +++ b/ndc-client/tests/json_schema/capabilities_response.jsonschema @@ -36,6 +36,16 @@ } ] }, + "mutation": { + "anyOf": [ + { + "$ref": "#/definitions/MutationCapabilities" + }, + { + "type": "null" + } + ] + }, "relationships": { "anyOf": [ { @@ -80,6 +90,23 @@ "description": "A unit value to indicate a particular leaf capability is supported. This is an empty struct to allow for future sub-capabilities.", "type": "object" }, + "MutationCapabilities": { + "title": "Mutation Capabilities", + "type": "object", + "properties": { + "transactional": { + "description": "Does the connector support executing multiple mutations in a transaction.", + "anyOf": [ + { + "$ref": "#/definitions/LeafCapability" + }, + { + "type": "null" + } + ] + } + } + }, "RelationshipCapabilities": { "title": "Relationship Capabilities", "type": "object", diff --git a/ndc-reference/tests/capabilities/expected.json b/ndc-reference/tests/capabilities/expected.json index 7632485a..1c955c5a 100644 --- a/ndc-reference/tests/capabilities/expected.json +++ b/ndc-reference/tests/capabilities/expected.json @@ -5,6 +5,7 @@ "aggregates": {}, "variables": {} }, + "mutation": {}, "relationships": { "relation_comparisons": {}, "order_by_aggregate": {} diff --git a/ndc-reference/tests/mutation/upsert_article/expected.json b/ndc-reference/tests/mutation/upsert_article/expected.json index 7c333536..e5fd0ef5 100644 --- a/ndc-reference/tests/mutation/upsert_article/expected.json +++ b/ndc-reference/tests/mutation/upsert_article/expected.json @@ -7,16 +7,6 @@ "__value": null } ] - }, - { - "affected_rows": 1, - "returning": [ - { - "__value": { - "id": 2 - } - } - ] } ] } \ No newline at end of file diff --git a/ndc-reference/tests/mutation/upsert_article/request.json b/ndc-reference/tests/mutation/upsert_article/request.json index 49bc03a1..9f6593f2 100644 --- a/ndc-reference/tests/mutation/upsert_article/request.json +++ b/ndc-reference/tests/mutation/upsert_article/request.json @@ -18,24 +18,7 @@ "column": "id" } } - }, - { - "type": "procedure", - "name": "upsert_article", - "arguments": { - "article": { - "id": 2, - "title": "QuickCheck: a lightweight tool for random testing of Haskell programs", - "author_id": 2 - } - }, - "fields": { - "id": { - "type": "column", - "column": "id" - } - } } ], "collection_relationships": {} -} \ No newline at end of file +}