armega
armega
DIAdiscord.js - Imagine an app
Created by armega on 2/6/2024 in #djs-questions
Accessing elements inside a returned sequelize object
npm list ── [email protected]
5 replies
DIAdiscord.js - Imagine an app
Created by armega on 2/6/2024 in #djs-questions
Accessing elements inside a returned sequelize object
RETURNED OBJECT
[
game_user {
dataValues: {
id: 1,
discordId: 'myDiscordUsername',
createdAt: 2024-02-05T23:59:13.235Z,
updatedAt: 2024-02-05T23:59:13.235Z
},
_previousDataValues: {
id: 1,
discordId: 'myDiscordUsername',
createdAt: 2024-02-05T23:59:13.235Z,
updatedAt: 2024-02-05T23:59:13.235Z
},
uniqno: 1,
_changed: Set(0) {},
_options: {
isNewRecord: false,
_schema: null,
_schemaDelimiter: '',
raw: true,
attributes: [Array]
},
isNewRecord: false
},
false
]
[
game_user {
dataValues: {
id: 1,
discordId: 'myDiscordUsername',
createdAt: 2024-02-05T23:59:13.235Z,
updatedAt: 2024-02-05T23:59:13.235Z
},
_previousDataValues: {
id: 1,
discordId: 'myDiscordUsername',
createdAt: 2024-02-05T23:59:13.235Z,
updatedAt: 2024-02-05T23:59:13.235Z
},
uniqno: 1,
_changed: Set(0) {},
_options: {
isNewRecord: false,
_schema: null,
_schemaDelimiter: '',
raw: true,
attributes: [Array]
},
isNewRecord: false
},
false
]
5 replies