sails-mysql-transactions
sails-mysql-transactions copied to clipboard
Remove transactionId from results
If I do the following:
Model.find().exec(function(err, data){
return data;
});
The array contains objects and one of the values in the object is transactionId. Currently I'm looping through the data and deleting that field.
This is currently a limitation of the implementation. The transaction ID field is required in order to get waterline to pass the id from controller / model to the adapter.
We are working to modify waterline so that this behaviour is no longer needed.
We just made some headway in this. The newly added .count
method is completely not reliant on transactionId
field. Hoping to refactor the rest of the waterline methods to act this way too.