I have postgres table name 'tests' which contain few records, now I want to fetch all record of this table but unable because its provides only 'id,createdAt and updatedAt'. So either I have to provide an object which contain column name that I don't want, I wish it should be dynamic so after this if I pass another table name it will provide data of that. I tried this but it returns null array of object Project.findAll(attributes: ['*'] }).then(function(project) { console.log("select_data: " + JSON.stringify(project)); })
via Vicky Sharma