Closing the database

We’re done with our database, let’s close the connection:

  1. db.close()

This is just the basics! You can make your queries as complex as you like. Check the documentation on querying for more info.