Skip to content

Commit 12ab587

Browse files
committed
patch docs
1 parent 2d1531f commit 12ab587

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

nexus/src/db/collection_detach_many.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,18 @@ pub trait DatastoreDetachManyTarget<ResourceType>:
4242
/// collection and a resource while detaching a resource.
4343
///
4444
/// - `collection_id`: Primary key of the collection being removed from.
45-
/// - `resource_id`: Primary key of the resource being detached.
4645
/// - `collection_query`: An optional query for collection state. The
4746
/// CTE will automatically filter this query to `collection_id`, and
4847
/// validate that the "time deleted" column is NULL.
4948
/// - `resource_query`: An optional query for the resource state. The
50-
/// CTE will automatically filter this query to `resource_id`,
49+
/// CTE will automatically filter this query to non-deleted resources.
5150
/// validate that the "time deleted" column is NULL, and validate that the
5251
/// "collection_id" column points to `collection_id`.
53-
/// - `update`: An update statement, identifying how the resource object
54-
/// should be modified to be detached
52+
/// - `update_collection`: An update statement, identifying how the
53+
/// collection object should be modified as associated resources are
54+
/// detached.
55+
/// - `update_resource`: An update statement, identifying how the resource
56+
/// objects should be modified to be detached
5557
///
5658
/// The VC, VR types refer to the "update target" of the UpdateStatements,
5759
/// and should generally be inferred rather than explicitly specified.

0 commit comments

Comments
 (0)