Skip to content

Commit 8d69c3a

Browse files
committed
add traverseMe to graphik-client-go
1 parent e723c45 commit 8d69c3a

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.13.0
2+
current_version = 0.13.1
33
commit = False
44
tag = False
55

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version := "0.13.0"
1+
version := "0.13.1"
22

33
.DEFAULT_GOAL := help
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://graphikdb.github.io/graphik/
77

88
`git clone git@github.com:graphikDB/graphik.git`
99

10-
`docker pull graphikdb/graphik:v0.13.0`
10+
`docker pull graphikdb/graphik:v0.13.1`
1111

1212
Graphik is a Backend as a Service implemented as an identity-aware, permissioned, persistant document/graph database & pubsub server written in Go.
1313

@@ -903,7 +903,7 @@ add this docker-compose.yml to ${pwd}:
903903
version: '3.7'
904904
services:
905905
graphik:
906-
image: graphikdb/graphik:v0.13.0
906+
image: graphikdb/graphik:v0.13.1
907907
env_file:
908908
- .env
909909
ports:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.7'
22
services:
33
graphik:
4-
image: graphikdb/graphik:v0.13.0
4+
image: graphikdb/graphik:v0.13.1
55
env_file:
66
- .env
77
ports:

gen/grpc/go/graphik.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ const (
1313
)
1414

1515
func NewStruct(data map[string]interface{}) *structpb.Struct {
16+
if data == nil {
17+
data = map[string]interface{}{}
18+
}
1619
x, _ := structpb.NewStruct(data)
1720
return x
1821
}

graphik-client-go/graphik.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ func (c *Client) Traverse(ctx context.Context, in *apipb.TraverseFilter, opts ..
385385
return c.graph.Traverse(ctx, in, opts...)
386386
}
387387

388+
// TraverseMe executes a graph traversal searching for docs related to the currently logged in user
389+
func (c *Client) TraverseMe(ctx context.Context, in *apipb.TraverseMeFilter, opts ...grpc.CallOption) (*apipb.Traversals, error) {
390+
return c.graph.TraverseMe(ctx, in, opts...)
391+
}
392+
388393
// DelDoc deletes a doc by reference
389394
func (c *Client) DelDoc(ctx context.Context, in *apipb.Ref, opts ...grpc.CallOption) error {
390395
_, err := c.graph.DelDoc(ctx, in, opts...)

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package version
22

3-
const Version = "0.13.0"
3+
const Version = "0.13.1"

0 commit comments

Comments
 (0)