Author: Not specified Language: javascript
Description: (v25) Timestamp: 2018-06-12 22:44:13 +0000
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply
  1. return database
  2.             .getAllUsers()
  3.             .flatMap(to: User.self) { users in
  4.                 let user = users[0]
  5.                 user.name = "Bob"
  6.                 return user.save()
  7.             }.map(to: HTTPStatus.self) { user in
  8.                 return HTTPStatus.noContent
  9.             }
View raw paste Parent paste by: Not specified - Child paste by: Not specified Reply