Fork me on GitHub
#graphql
<
2019-06-05
>
Ian Fernandez18:06:23

Hey guys, i'm having some problem with lacinia

maridonkers18:06:46

Is it a string?

Ian Fernandez18:06:26

Unable to serialize 5085398338371584 as type `ID'

Ian Fernandez18:06:39

why I can't serialize this?

gklijs18:06:34

Probably because it's an Int, so either change the schema to be an Int instead of ID, or make sure the ID is a string. This used to work before the last update.

Ian Fernandez19:06:16

yeah, it used to work

gklijs05:06:04

It's closer to the GraphQL spec now, so that seems like a valid reason.

souenzzo19:06:40

5085398338371584 is close to Number.MAX_SAFE_INTEGER // => 9007199254740991 in modern chrome Use strings for ID 's will avoid issues in frontend/browser @d.ian.b

❤️ 8
waving 4