Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ unknown attributes and values are detected in the request body.
Note that all invalid elements and combinations will be rejected in future
versions.

#### Dropping a collection from a graph

Dropping a collection from a graph using the
`DELETE /_api/collection/{collection-name}` endpoint is now strictly enforced
so that the graph definition remains intact. Previously, it was allowed to drop
collections that were part of an existing graph.

#### Index API

##### Stored values can contain the `_id` attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,23 @@ changed in the documents of SmartGraph vertex collections. This is now strictly
See [API Changes in ArangoDB 3.12](api-changes-in-3-12.md#validation-of-smartgraphattribute-in-smartgraphs)
for details and instructions on how to repair affected attributes.

## Prevent dropping a collection from a graph

Dropping collections that are part of an existing graph is now strictly enforced
so that the graph definition remains intact even if you attempt to drop a
collection.

While previously it was allowed to drop collections that were part of an existing
graph, trying to do so results in the following error:
`ERROR_GRAPH_MUST_NOT_DROP_COLLECTION` with the `1942` error code.

This may require changes in the client application code that drops individual
collections from graphs for clean-up purposes. The recommended way to drop
these collections is to drop the graph instead. Dropping the graph can optionally
delete all associated collections of the graph as well. Even if this is not used,
collections that are not part of a graph definition anymore can later be dropped
regularly.

## Client tools

### jslint feature in arangosh
Expand Down