code: def getType(self) :
          
          if self.type == CONST.COLLECTION_DOCUMENT_TYPE :
              return "document"
          elif self.type == CONST.COLLECTION_EDGE_TYPE :
              return "edge"
          else :
              raise ValueError("The collection is of Unknown type %s" % self.type)
docs: returns a word describing the type of the collection (edges or ducments) instead of a number, if you prefer the number it's in self.type