Cayley 0.7.0 count query


#1

Hi everyone,

I was able to use count with gizmo api on cayley 0.6.1 but now i’m getting an error message like this :

{“error” : “TypeError: Object has no member ‘All’ at \u003ceval\u003e:1:18(9)”}

query is : g.V().Count().All()

Am i mising something?

thanks


#2

Hi @gokhanckgz,

Count().All() was causing confusion for new users, so we decided to make Count() to return result as a value in v0.7.

If you want match a previous behavior, you can emit results of this function call:

var n = g.V().Count();
g.Emit(n);

#3

thanks for quick reply @dennwc, i can access the result with api now. :+1:t5: