Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Can't findOne, update, delete on composite primary keys #488

Description

@matthewmueller
create table variables (
  name text not null,
  key text not null,
  value text not null,
  email text not null,
  primary key(name, key)
);
insert into variables (name, key, value, email) values ('a', 'b', 'c', 'd');
// typescript error
client.variables.findOne({ where: { variables_name_key_key: { key: 'b', name: 'a' } } })
client.variables.update({ where: { variables_name_key_key: { key: 'b', name: 'a' } } })
client.variables.delete({ where: { variables_name_key_key: { key: 'b', name: 'a' } } })

Related: #489

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions