daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let results: EventLoopFuture<[Document]> = tXCollection.find().getAllResults()
  2.        
  3.         return results.map({ documents in
  4.             for document in documents {
  5.                 let object = try BSONDecoder().decode(TX_JSON.self, from: document)
  6.                 print(object)
  7.                 objects.append(object)
  8.             }
  9.             return objects
  10.         })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top