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

    Type Alias WRDUpdateType<Schema, TypeName>

    WRDUpdateType: WRDUpdatable<EntityMatchSchema<Schema>[TypeName]>

    The fields you can supply to updateEntity (or update) to update an entity of the specified type.

    Type Parameters

    • Schema extends keyof WRDSchemaLike | AnyWRDSchema

      A schema name registered in WRDSchemaLike, or a schema object type such as typeof usermgmtSchema.

    • TypeName extends keyof EntityMatchSchema<Schema> & string

      An entity type tag in the selected schema.

    const changes: WRDUpdateType<"system:usermgmt", "wrdPerson"> = { wrdLastName: "Doe" };
    await wrd("system:usermgmt").getType("wrdPerson").updateEntity(personId, changes);