Skip to content

Instantly share code, notes, and snippets.

@trishagee
Created October 1, 2014 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trishagee/7c96c710205c04ee8175 to your computer and use it in GitHub Desktop.
Save trishagee/7c96c710205c04ee8175 to your computer and use it in GitHub Desktop.
Initialisation of the groovy script
import com.mongodb.BasicDBObject
import com.mongodb.MongoClient
def mongoClient = new MongoClient();
def collection = mongoClient.getDB("Cafelito").getCollection("CoffeeShop")
collection.drop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment