@voidmerge/voidmerge-client
    Preparing search index...

    Class VmSelect

    Construct data for selecting (querying) data from a VoidMerge instance.

    Index

    Constructors

    Properties

    filterByIdents?: VmHash[]
    filterByShorts?: VmHash[]
    filterByTypes?: string[]
    returnData?: boolean
    returnIdent?: boolean
    returnShort?: boolean
    returnType?: boolean

    Methods

    • Returns Uint8Array

    • If you would like to only return items with specific idents, specify that list of idents here.

      Parameters

      Returns VmSelect

    • By default, select will return items of all types. If you would like to limit this, specify a list of types to include.

      Parameters

      • types: string[]

      Returns VmSelect

    • By default, select results do not include the actualy data content. If you set returnData to true, this will be included in the result. Note that this may result in a very large response that may get truncated. Instead, you could fetch a list of short hashes, and then make separate individual requests for the content data.

      Parameters

      • returnData: boolean

      Returns VmSelect

    • By default, select results do not include the ident. If you set returnIdent to true, these idents will be included.

      Parameters

      • returnIdent: boolean

      Returns VmSelect

    • By default, select results do not include the short hash. If you set returnShort to true, these hashes will be included.

      Parameters

      • returnShort: boolean

      Returns VmSelect

    • By default, select results do not include the type of the item. If you set returnType to true, the type will be included with the items.

      Parameters

      • returnType: boolean

      Returns VmSelect