Merge pull request #153 from mataevs/exceptop
Except/Not Operator for Gremlin.
This commit is contained in:
commit
c2fab568c7
5 changed files with 238 additions and 0 deletions
|
|
@ -120,6 +120,20 @@ var testQueries = []struct {
|
|||
tag: "acd",
|
||||
expect: []string{"D"},
|
||||
},
|
||||
{
|
||||
message: "use Except to filter out a single vertex",
|
||||
query: `
|
||||
g.V("A", "B").Except(g.V("A")).All()
|
||||
`,
|
||||
expect: []string{"B"},
|
||||
},
|
||||
{
|
||||
message: "use chained Except",
|
||||
query: `
|
||||
g.V("A", "B", "C").Except(g.V("B")).Except(g.V("C")).All()
|
||||
`,
|
||||
expect: []string{"A"},
|
||||
},
|
||||
|
||||
// Morphism tests.
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue