generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Summary
When using an external PostgreSQL database with a table that has a composite primary key (i.e., a primary key composed of multiple columns), the list() query fails.
Schema Definition
The generated model schema looks like this:
"overview": a.model({
a: a.string().required(),
b: a.date().required(),
c: a.integer(),
d: a.float(),
e: a.float(),
}).identifier(["a", "b"]) // composite primary keyQuery Used
client.models.overview.list({
limit: 5,
});Observed Behavior
The query fails with the following error:
Validation error of type UnknownType: Unknown type bExpected Behavior
The query should return the first 5 entries from the overview table, just like it would for a table with a single-column primary key.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working