Closed
Description
If a mutation returns a non integer id (like a relay node), a new record with id NaN is created.
I found this while debugging:
plugin-graphql/src/actions/action.ts
Line 44 in 0730a86
Something like this might be better:
const newId = Number.parseInt(newData.id, 10);
if (!Number.isNaN(newId)) {
newData.id = newId;
}