Overview
Creates a new document in repository and returns a document instance.Document my$Documents.New(title: string)
Document my$Documents.New(title: string, contentType: string)
Arguments
string title
of document
string contentType
of document