Skip to content

Datapoints.GetInto

func (datapointClient) GetInto(
ctx context.Context,
datasetID uuid.UUID,
datapointID uuid.UUID,
datapoint proto.Message,
options ...QueryOption,
) error

Get a datapoint by its ID from one or more collections of the same dataset.

The data point is stored in the datapoint parameter.

datasetID uuid.UUID

The ID of the dataset to query.

datapointID uuid.UUID

The id of the datapoint to query

datapoint proto.Message

The datapoint to query into

options []QueryOption

Options for querying data points.

WithCollections(collections ...*datasets.Collection)

Restrict the lookup to specific dataset collections by collection object.

WithCollectionIDs(collectionIDs ...uuid.UUID)

Restrict the lookup to specific dataset collections by collection ID.

WithSkipData()

Default: false

Skip the data when querying datapoint. If set, only the required and auto-generated fields will be returned.

An error if data point could not be queried.