To use mongokitten in Swift, follow these steps:
Package.swift:main.swift102 chars4 lines
main.swift19 chars2 lines
Database class:main.swift183 chars7 linesCollection class:main.swift223 chars11 linesinsert method on the Collection class:main.swift199 chars12 linesThat's it! You should now be able to use MongoKitten to interact with your MongoDB database in Swift.
gistlibby LogSnag