Skip to content

@pod-os/core


@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

Thing

The thing to link the picture to

file

NewFile

The uploaded picture file metadata

Returns

UpdateOperation

UpdateOperation that adds the picture link to the thing's document