# Where to define a name-space for collections?

  1. Provide the name-space after collection name using the keyword under

For example, in order define Address collection under a namespace emp:

 






collection Address under emp {
	property line1:String
	property line2:String?
	property city:String
	property state:String
}
  1. run command compile

Note: This creates a collection on mongo server with name <namespace>.<collection>. For example, in this case the address collection name under lottery db would be emp.address