bitflicker64 commented on code in PR #558:
URL: https://github.com/apache/hugegraph-doc/pull/558#discussion_r4439592210
##########
content/en/docs/quickstart/client/hugegraph-client-python.md:
##########
@@ -50,30 +50,29 @@ client = PyHugeClient(
)
schema = client.schema()
-schema.propertyKey("name").asText().ifNotExist().create()
-schema.propertyKey("birthDate").asText().ifNotExist().create()
-schema.vertexLabel("Person").properties("name", "birthDate") \
- .usePrimaryKeyId().primaryKeys("name").ifNotExist().create()
-schema.vertexLabel("Movie").properties("name") \
- .usePrimaryKeyId().primaryKeys("name").ifNotExist().create()
-schema.edgeLabel("ActedIn").sourceLabel("Person").targetLabel("Movie") \
- .ifNotExist().create()
+schema.property_key("name").as_text().if_not_exist().create()
Review Comment:
Important: the page installs the released `hugegraph-python` from PyPI, but
neither the `1.7.0` release nor `hugegraph-ai` main has `property_key`,
`add_vertex` or `client.close()`, so every example here and in the CN quick
start fails with `AttributeError`. Merge this after `apache/hugegraph-ai#392`,
and state that these examples need a client release that includes it or a
source install until one ships.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]