You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
Create a new Blank P2 project with Postgres. Change the schema to have one model with an integer ID. I used this:
generator photon {
provider = "photonjs"
}
datasource db {
provider = "postgresql"
url = "postgresql://siddhant@localhost/experiments?schema=public"
}
model User {
id Int @id
name String?
}
This does not compile, because the type of the after argument is supposed to be string (which should be number IMO), and so if I change the 1 to a "1" like so:
Relay spec says that a cursor should be serializable to a string. Ideally, it should match the type of the underlying model, we we need to map it out further.
Steps to reproduce:
This does not compile, because the type of the
after
argument is supposed to be string (which should be number IMO), and so if I change the1
to a"1"
like so:I get a connector error that says:
which is expected I think.
SQLite breaks with
after: 1
, but works just fine withafter: "1"
I'd assume this would also break with other types of IDs that aren't strings (floats etc.)
The text was updated successfully, but these errors were encountered: