Hi! Sort of new to sequelize, so this could be a problem with the way that I've setup my associations (I apologize in advance if that is the case). So far so good on getting this running with an existing database. I've got an issue with list on an association. Right now, I am doing this:
I'd like for the /events endpoints to return just the events records from the database , but right now when using list /events resource it returns EVERYTHING for the events including all lots & lot_images for each event. How do I get this to just return the events resource without the associations in the response? P.S. I did not architect the DB structure.
Hi! Sort of new to sequelize, so this could be a problem with the way that I've setup my associations (I apologize in advance if that is the case). So far so good on getting this running with an existing database. I've got an issue with list on an association. Right now, I am doing this:
I'd like for the /events endpoints to return just the events records from the database , but right now when using list /events resource it returns EVERYTHING for the events including all lots & lot_images for each event. How do I get this to just return the events resource without the associations in the response? P.S. I did not architect the DB structure.