public function create($document, $options = null)
    {
        $this->assertProperties($document, ['_type'], 'create');
        return $this->createDocument($document, 'create', $options);
    }
public function create($document, $options = null)
    {
        $this->assertProperties($document, ['_type'], 'create');
        return $this->createDocument($document, 'create', $options);
    }
public function create ( $ document , $ options = null ) { $ this -> assertProperties ( $ document , [ '_type' ] , 'create' ) ; return $ this -> createDocument ( $ document , 'create' , $ options ) ; }
Create a new document in the configured dataset

@param array $document Document to create. Must include a `_type`
@param array $options Optional request options
@return array Returns the created document
Create a new document in the configured dataset