Skip to content

Commit a0883ed

Browse files
Merge pull request #16 from beyondnetworks/master
Updates to support Amazon Neptune
2 parents e76d18e + 16495be commit a0883ed

File tree

55 files changed

+162
-304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+162
-304
lines changed

examples/add-vertex-by-struct/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func main() {
7070

7171
// Print out the resulting vertex and its values.
7272
logger.Info("Vertex", zap.String("label", vertex.Label()))
73-
logger.Info("Vertex", zap.Int64("ID", vertex.ID()))
73+
logger.Info("Vertex", zap.Any("ID", vertex.ID()))
7474

7575
for k, v := range vertex.PropertyMap() {
7676
logger.Info("Property", zap.Any(k, v[0].GetValue()))

examples/all-vertices/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func main() {
7373
for _, vertex := range vertices {
7474
logger.Info("gathered vertex",
7575
zap.String("label", vertex.Label()),
76-
zap.Int64("id", vertex.ID()),
76+
zap.Any("id", vertex.ID()),
7777
)
7878
}
7979
}

examples/drop-vertex-by-id/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The basics of dropping vertices using only their IDs using the `DropVertexByID`
44

55
## Description
66

7-
**drop-vertex-by-id** demonstrates how to drop specific vertices on the graph using their IDs. Specifically this examples shows how to drop the vertices using the `DropVertexByID` function in the Grammes client which takes in an `int64` for the ID of the vertex.
7+
**drop-vertex-by-id** demonstrates how to drop specific vertices on the graph using their IDs. Specifically this examples shows how to drop the vertices using the `DropVertexByID` function in the Grammes client which takes in an object for the ID of the vertex.
88

99
## Prerequisites
1010

examples/id-by-label/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The basics of getting vertex IDs using the `VertexIDs` function.
44

55
## Description
66

7-
**id-by-label** demonstrates how to get vertex IDs using a label. Specifically this examples shows how to by using the `VertexIDs` function which takes a `string` label and returns a `[]int64` and `error`. *(This function has multiple purposes and is also shown in `id-by-property`)*
7+
**id-by-label** demonstrates how to get vertex IDs using a label. Specifically this examples shows how to by using the `VertexIDs` function which takes a `string` label and returns a `[]interface{}` and `error`. *(This function has multiple purposes and is also shown in `id-by-property`)*
88

99
## Prerequisites
1010

examples/id-by-label/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ func main() {
7373
// Print out all the received vertex IDs.
7474
// This should only print out one ID.
7575
for _, id := range ids {
76-
logger.Info("vertex id", zap.Int64("value", id))
76+
logger.Info("vertex id", zap.Any("value", id))
7777
}
7878
}

examples/id-by-property/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The basics of getting vertex IDs using the `VertexIDs` function.
44

55
## Description
66

7-
**id-by-property** demonstrates how to get vertex IDs using a label and vertex properties. Specifically this examples shows how to by using the `VertexIDs` function which takes a `string` label and `...interface{}` for properties. Then returns a `[]int64` and `error`. *(This function has multiple purposes and is also shown in `id-by-label`)*
7+
**id-by-property** demonstrates how to get vertex IDs using a label and vertex properties. Specifically this examples shows how to by using the `VertexIDs` function which takes a `string` label and `...interface{}` for properties. Then returns a `[]interface{}` and `error`. *(This function has multiple purposes and is also shown in `id-by-label`)*
88

99
## Prerequisites
1010

examples/id-by-property/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ func main() {
7474
// Print out all the received vertex IDs.
7575
// This should only print out one ID.
7676
for _, id := range ids {
77-
logger.Info("vertex id", zap.Int64("value", id))
77+
logger.Info("vertex id", zap.Any("value", id))
7878
}
7979
}

examples/id-by-query/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The basics of getting vertex IDs using the `VertexIDsByQuery` function.
44

55
## Description
66

7-
**id-by-query** demonstrates how to get vertex IDs using a `Query` object. Specifically this examples shows how to by using the `VertexIDsByQuery` function which takes a `Query` object that's meant to identify one or more vertices then returns a `[]int64` and `error`.
7+
**id-by-query** demonstrates how to get vertex IDs using a `Query` object. Specifically this examples shows how to by using the `VertexIDsByQuery` function which takes a `Query` object that's meant to identify one or more vertices then returns a `[]interface{}` and `error`.
88

99
## Prerequisites
1010

examples/id-by-query/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ func main() {
7575

7676
// Print out all the received vertex IDs.
7777
for _, id := range ids {
78-
logger.Info("vertex id", zap.Int64("value", id))
78+
logger.Info("vertex id", zap.Any("value", id))
7979
}
8080
}

examples/id-by-string/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The basics of getting vertex IDs using the `VertexIDsByString` function.
44

55
## Description
66

7-
**id-by-query** demonstrates how to get vertex IDs using a `string` query. Specifically this examples shows how to by using the `VertexIDsByString` function which takes a `string` query that's meant to identify one or more vertices then returns a `[]int64` and `error`.
7+
**id-by-query** demonstrates how to get vertex IDs using a `string` query. Specifically this examples shows how to by using the `VertexIDsByString` function which takes a `string` query that's meant to identify one or more vertices then returns a `[]interface{}` and `error`.
88

99
## Prerequisites
1010

0 commit comments

Comments
 (0)