Skip to content Skip to sidebar Skip to footer

Sequelize On Graphql Update Not Return Anything

GraphQL return null using Sequelize update. updatePerson: { type: Person, args: { value: { type: UpdatePersonInputType }, where: { type: WhereUpdatePers

Solution 1:

My bad, I'm using MySQL, Sequelize just support PostgreSQL if you need return affectedRows, but if you use MySQL you just can only return affectedCount.

http://docs.sequelizejs.com/en/latest/api/model/#updatevalues-options-promisearrayaffectedcount-affectedrows

Post a Comment for "Sequelize On Graphql Update Not Return Anything"