WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Function findOne

    • Type Parameters

      Parameters

      • collectionId: string

        The ID of the collection to remove the item from.

      • propertyName: Extract<keyof CItem>

        Property to filter.

      • value: any

        Filter value (mathing value for .eq filter)

      • Optionaloptions: WeivDataOptionsCache

        An object containing options to use when processing this operation.

      Returns Promise<undefined | Item>

      Fulfilled - Found item. Rejected - The error caused the rejection.

      You can use findOne to find a single item from your collections based on .eq filter for any field.