onConflictDoNothing does not exist on planetscale client

i am getting an "Property onConflictDoNothing does not exist on type" on the following script....

export async function lookupNationalitySeed(client: DbClient) {
  await client.insert(lookupNationality).values(
    data.map((nationality) => ({
      id: ulid(),
      name: nationality,
      slug: paramCase(nationality),
    })),
  ).onConflictDoNothing()
}


the client is a type of
PlanetScaleDatabase<typeof schema>

the only typesafe method i get is
onDuplicateKeyUpdate
Was this page helpful?