Content Deep Dive
Gremlin Recipes: 6 – Projection and Selection
Blog post from DataStax
Post Details
Company
Date Published
Author
Duy Hai Doan
Word Count
3,059
Language
English
Hacker News Points
-
Summary
In this tutorial, we will learn how to use Gremlin's filtering and selection capabilities in DataStax Enterprise Graph (DSE Graph). We will cover the following steps: 1. Projection by() 2. Deduplication with dedup(...).by(...) 3. Selection using has(property, predicate) and filter(predicate) 4. Resolution of previously labeled steps with where(predicate) 5. Filtering on inner traversals 6. Double-labeling to avoid overriding previous projections By the end of this tutorial, you will be able to effectively filter and select vertices/edges in DSE Graph using Gremlin.