Alpha attempt at in and out predicates.

This commit is contained in:
Allon Hadaya 2015-04-26 16:07:15 -04:00
parent 86ae24f59d
commit f775756ad1
3 changed files with 29 additions and 0 deletions

View file

@ -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 {