Guest User

Untitled

a guest
Jun 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. return app.service('points').find(
  2. {
  3. query: {
  4. point_id: [1, 2, 5],
  5. include: ['PointPhotos'],
  6. order: [
  7. [
  8. 'point_id',
  9. 'DESC'
  10. ],
  11. [
  12. 'PointPhotos',
  13. 'photo_id',
  14. 'DESC'
  15. ]
  16. ]
  17. }
  18. }
  19. );
  20. })
  21.  
  22. error: SequelizeDatabaseError: column points.order does not exist
Add Comment
Please, Sign In to add comment