Bookshelf only returns one row
Fetch and FetchAll
Model.query(
'where','mapID','=',req.query.mapID
).fetch()
// get only one rowModel.query(
'where','mapID','=',req.query.mapID
).fetchAll()
// get all rowsLast updated
Was this helpful?
Fetch and FetchAll
Model.query(
'where','mapID','=',req.query.mapID
).fetch()
// get only one rowModel.query(
'where','mapID','=',req.query.mapID
).fetchAll()
// get all rowsLast updated
Was this helpful?