Skip to content

Commit

Permalink
chore: nullableKeys test
Browse files Browse the repository at this point in the history
  • Loading branch information
diaohancai committed Nov 13, 2023
1 parent b4b94b1 commit 7d6e8ca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static void setup() {
SchemaManager schema = client.schema();

schema.propertyKey(PROPERTY_KEY)
.asInt()
.asDouble()
.ifNotExist()
.create();
schema.vertexLabel("user")
Expand All @@ -73,6 +73,7 @@ public static void setup() {
.sourceLabel("user")
.targetLabel("user")
.properties(PROPERTY_KEY)
.nullableKeys(PROPERTY_KEY)
.ifNotExist()
.create();

Expand All @@ -89,10 +90,10 @@ public static void setup() {
Vertex vG = graph.addVertex(T.LABEL, "user", T.ID, "G");

vA.addEdge("know", vB, PROPERTY_KEY, 9);
vA.addEdge("know", vC, PROPERTY_KEY, 1);
vA.addEdge("know", vC);
vA.addEdge("know", vD, PROPERTY_KEY, 3);
vB.addEdge("know", vC, PROPERTY_KEY, 2);
vC.addEdge("know", vA, PROPERTY_KEY, 1);
vC.addEdge("know", vA);
vC.addEdge("know", vE, PROPERTY_KEY, 2);
vD.addEdge("know", vA, PROPERTY_KEY, 7);
vD.addEdge("know", vC, PROPERTY_KEY, 1);
Expand Down

0 comments on commit 7d6e8ca

Please sign in to comment.