original: error: column "statistics->>'chats'" does not exist #16423
Replies: 1 comment
-
You seem to be trying to extract JSON. This can be done easily in v7, but you're going to have to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't get the sum of the chats variable from jsondb...
User.findAll({
attributes: [[sequelize.fn('SUM', sequelize.col("users.statistics->>'chats'")), 'sum']]
})
Beta Was this translation helpful? Give feedback.
All reactions