We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The upsert and get commands are not implemented, they might be useful. The upsert command is similar to save:
public function upsert( $document ) { $document = (object) $document; $partitionValue = $this->findPartitionValue( $document ); $document = json_encode( $document ); $headers = $this->triggersAsHeaders( "create" ); $headers['x-ms-documentdb-is-upsert'] = 'True'; $result = $this->collection->createDocument( $document, $partitionValue, $headers ); $resultObj = json_decode( $result ); if ( isset( $resultObj->code ) && isset( $resultObj->message ) ) { throw new Exception( "$resultObj->code : $resultObj->message" ); } return $resultObj->_rid ?? null; }
While the get should simply take advantage of the CosmoDB getDocument method already implemented.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The upsert and get commands are not implemented, they might be useful.
The upsert command is similar to save:
While the get should simply take advantage of the CosmoDB getDocument method already implemented.
The text was updated successfully, but these errors were encountered: