Does onConflictDoUpdate work with composite primary keys?

I have a model defined below:

export const userDevices = pgTable(
    id: text('id').notNull(),
    userId: uuid('user_id')
      .references(() =>, {
        onDelete: 'cascade',
  (table) => ({
    idUserIdPk: primaryKey(, table.userId),

I want to upsert a row into this table but I'm not sure how to set target to the composite primary key. Is this possible?

return this.drizzleService.db
        target: /* What to do here? */,
        set: data,
try something like this?

target: [, table.userId]
Seems like that worked! I have yet to actually run it but the types don't disagree :)