Skip to content

Commit

Permalink
Fixed a typo in persistent_graph_store.rst (#1226)
Browse files Browse the repository at this point in the history
Fixed a typo in `persistent_graph_store.rst` by renaming the deprecated API `partition_by` to `add_primary_key`.
  • Loading branch information
wuyueandrew committed Dec 27, 2021
1 parent 06de1f1 commit e26e533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/persistent_graph_store.rst
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ The schema have defined several method

.. code:: python
schema.add_vertex_label('v_label_name').partition_by('primary_key_name', 'property_type').property('property_name_1', 'property_type').property('property_name_2', 'property_type')
schema.add_vertex_label('v_label_name').add_primary_key('primary_key_name', 'property_type').property('property_name_1', 'property_type').property('property_name_2', 'property_type')
schema.add_edge_label('e_label_name').from('source_label').to('destination_label').property('property_name_3', 'property_type')
schema.update()
schema.drop('label')
Expand All @@ -235,7 +235,7 @@ The schema have defined several method
Here the `label_name`, `primary_key_name`, `property_type` is specified by user, the `property_type` can be one of `int`, `float`, `str`, and one label can have multiple `property` statement.

For vertices, the `partitioned_by` is to specify the primary key of the label, also be called ID.
For vertices, the `add_primary_key` is to specify the primary key of the label, also be called ID.

For edges, the `from` and `to` will specify the source label and destination label of the edge kind, respectively.

Expand Down

0 comments on commit e26e533

Please sign in to comment.