Describe the bug
The 'first' modifier is not working correctly in nested (one-to-many) nodes using PostgreSQL.
To Reproduce
Steps to reproduce the behavior:
type User {
id: ID! @unique
name: String
interestedIn: [University!]!
}
type University {
id: ID! @unique
name: String
careers: [Career!]!
}
type Career {
id: ID! @unique
name: String
}
query{
users{
name
interestedIn{
name
careers(first: 10){
name
}
}
}
}
Expected behavior
It should return the only user (username=Federico) with the three loaded universities with the first 10 careers for each university, but is only returning the first 5 careers for Harvard, the first 5 for Cambridge, and the all 3 careers for Oxford.
Screenshots

Versions (please complete the following information):
OS X High Sierraprisma CLI: 1.16.2Additional context
I tried to reproduce this bug using MySQL and it works as expected.
Probably the same as https://github.com/prisma/prisma/issues/3040
Thanks for this reproduction @ficolo, I can reproduce it and we'll release a fix shortly.
We just released 1.16.4 which should fix this issue.
Thanks!
I tested and it works as expected.