Skip to content

Commit

Permalink
PR FIXUP - Change patchPrimaryDoc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Mar 29, 2023
1 parent 5d5bc69 commit 8e0858f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions db/collection_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,12 @@ func (c *collection) isSecondaryIDField(fieldDesc client.FieldDescription) (clie
return relationFieldDescription, valid && !relationFieldDescription.IsPrimaryRelation()
}

// patchPrimaryDoc patches the primary document linked to from the given dockey via the given secondary
// relationship field.
// patchPrimaryDoc patches the (primary) document linked to from the document of the given dockey via the
// given (secondary) relationship field description (hosted on the collection of the document matching the
// given dockey).
//
// The given field value should be the string representation of the dockey of the primary document to be
// patched.
func (c *collection) patchPrimaryDoc(
ctx context.Context,
txn datastore.Txn,
Expand Down

0 comments on commit 8e0858f

Please sign in to comment.