This is an invaluable tutorial on how to use the Gremlin query language to get results from a graph database. For some reason, all the internal links seem to be broken, but it's a ten-part series I think. Lesson six on projection and selection is particularly useful.
https://www.datastax.com/blog/2017/09/gremlin-recipes-1-understanding-gremlin-traversals