openSchemaById | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function openSchemaById

    • Open a schema by id

      Type Parameters

      • S extends SchemaTypeDefinitionModern = never

      Parameters

      • id: [S] extends [never]
            ? "You must provide a type argument <T> or AnySchemaType"
            : number

      Returns Promise<WRDSchemaType<S> | null>

      WRDSchema object or null if the schema does not exist

    • Open a schema by id

      Type Parameters

      Parameters

      • id: [S] extends [never]
            ? "You must provide a type argument <T> or AnySchemaType"
            : number

      Returns Promise<WRDSchemaType<S> | null>

      WRDSchema object or null if the schema does not exist