Katedral Pillon
Katedral Pillon

Reputation: 14864

what is the GQL count query

In the interest of time, I do mean GQL, as in

SELECT * FROM Song WHERE composer = 'Lennon, John'

The following failed

SELECT COUNT(*) FROM myEntity

also the following

SELECT COUNT() FROM myEntity

Upvotes: 0

Views: 1997

Answers (1)

Patrice
Patrice

Reputation: 4692

As shown here, there is actually a way to count the return of your GQL. The doc about the GQL language shows you can't really do a count on the query itself. So what you would do is take your select *, put it in a GQL query object, then call the "count()" method on that object to have the count

Upvotes: 1

Related Questions