Running a mutation like the following:
mutation SomeMutation {
insertOneFoo(data: {
quantity: 12
})
}
Where quantity
in my schema is defined as bsonType long
will result in the value being silently converted to a string which will no longer be valid when attempting to query or sync from other clients. This is not a problem with the sync clients (realm-cocoa at least).
Edit: I guess this is just a limitation of sending 64bit ints over json, I’ll try and figure out a workaround.