Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.17 KB

storing-entities.python.markdown

File metadata and controls

36 lines (22 loc) · 1.17 KB

Session: Storing Entities

To store entities inside the session object, use the store method.

Syntax

Stores the entity in a session, then extracts the ID from the entity or if not available generates a new one.

{CODE:python store_entities_1@ClientApi\Session\StoringEntities.py /}

Parameters
entity object Entity that will be stored
change_vector str Entity change vector, used for concurrency checks (None to skip check)
key str Entity will be stored under this ID, (None to generate automatically)

Example

{CODE:python store_entities_5@ClientApi\Session\StoringEntities.py /}

Related Articles

Session

Querying

Document Store