Alpha attempt at in and out predicates.
This commit is contained in:
parent
86ae24f59d
commit
f775756ad1
3 changed files with 29 additions and 0 deletions
|
|
@ -250,6 +250,20 @@ var testQueries = []struct {
|
|||
`,
|
||||
expect: []string{"bob", "greg"},
|
||||
},
|
||||
{
|
||||
message: "list all in predicates",
|
||||
query: `
|
||||
g.V().InPredicates().All()
|
||||
`,
|
||||
expect: []string{"follows", "status"},
|
||||
},
|
||||
{
|
||||
message: "list all out predicates",
|
||||
query: `
|
||||
g.V().OutPredicates().All()
|
||||
`,
|
||||
expect: []string{"follows", "status"},
|
||||
},
|
||||
}
|
||||
|
||||
func runQueryGetTag(g []quad.Quad, query string, tag string) []string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue