Version: v1.2.4 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0



The basics of getting vertex IDs using the VertexIDs function.


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)


  • go 1.12
  • Git
  • Elastic Search
  • Cassandra
    • Java 8


To run this test you will need a TinkerPop server running and a graph database to connect to locally. This example was tested while using JanusGraph which can be used by locating yourself to the root directory of the Grammes project.

cd $GOPATH/src/

After locating yourself here then you may change directory to the /scripts folder.

cd scripts

Finally you may run the script to begin a local instance of JanusGraph. This will begin the TinkerPop server for you as well.


For further instructions please find yourself to the root file.


General steps
  • Create a zap logger to help explain what's going on in the test and display the results.
  • Creates a Grammes client that connects to a locally hosted TinkerPop server with a WebSocket.
    • For testing this was created using JanusGraph. This can be run in the /scripts directory.
  • Drop all of the possible interfering vertices that were already on the graph.
  • Defer a drop of all the testing vertices. This is done as clean up.

Test specific steps
  • Adds testing vertices to the graph
  • Gathers vertex IDs that have this label and properties
  • Logs the IDs


The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL