@pod-os/core / createPictureLinkOperation
Function: createPictureLinkOperation()
createPictureLinkOperation(
thing,file):UpdateOperation
Defined in: picture/createPictureLinkOperation.ts:16
Creates an update operation to link a picture file to a thing. Uses schema:image as the predicate to establish the relationship.
Parameters
thing
The thing to link the picture to
file
The uploaded picture file metadata
Returns
UpdateOperation
UpdateOperation that adds the picture link to the thing's document