• Gets all SDM records in a store for a specific sdmSchemaId. The type of the records should be passed as a generic template to be type safe.

    Example

    import { Sdm } from '@showpad/experience-app-sdk'

    interface MyRecordType {
    field1: number
    field2: string
    }

    const records = await Sdm.getRecords<MyRecordType>(
    '<sdmStoreId>',
    '<sdmSchemaId>',
    )

    Type Parameters

    • T extends JsonObject

    Parameters

    • sdmStoreId: string
    • sdmSchemaId: string

    Returns Promise<SdmRecord<T>[]>

Generated using TypeDoc