io.on('connection', (socket) => { socket.on('login', async ({ user, password }) => { dbconfig.user = user; dbconfig.password = password; try { dbconnect = await mysqlx.getSession(dbconfig); let databases = await dbconnect.getSchemas(); console.log(`Databases`, databases); console.log(`Index 0`, databases[0].name); console.log(`Stringify Data`, JSON.stringify(databases)); socket.emit("DATABASES", JSON.stringify(databases)); } catch (err) { console.log('err', err); socket.emit("ERROR", err); } }); }); It seems to return the database normally, but when trying to make a stingifay, for some reason, this is the result.
Also, I can’t refer to which element is valid to 0 and take its name property from it.
I'm using mysql / xdevapi '
