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