@karmaniverous/entity-manager-demo
    Preparing search index...

    Function updateUser

    • Update user records in the database based on unique userId.

      Parameters

      • data: MakeUpdatable<
            {
                beneficiaryId?: string
                | null;
                created: number;
                firstName?: string | null;
                firstNameCanonical?: string | null;
                lastName?: string | null;
                lastNameCanonical?: string | null;
                phone?: string | null;
                updated: number;
                userId: string;
            },
            "userId",
        >

        User update data. Only userId is required. Generated properties will be overwritten. null optional properties will be deleted.

      Returns Promise<
          {
              beneficiaryId?: string
              | null;
              created: number;
              firstName?: string | null;
              firstNameCanonical?: string | null;
              lastName?: string | null;
              lastNameCanonical?: string | null;
              phone?: string | null;
              updated: number;
              userId: string;
          }[],
      >

      Error if user records do not exist.

      Shallow update semantics:

      • undefined properties are ignored
      • null properties are assigned (and removed from final payload)

      Returns domain items (array) for consistency with read/search handlers.