KeysOnly returns a derivative query that yields only keys, not keys and entities. It cannot be used with projection queries.
()
| 220 | // KeysOnly returns a derivative query that yields only keys, not keys and |
| 221 | // entities. It cannot be used with projection queries. |
| 222 | func (q *Query) KeysOnly() *Query { |
| 223 | q = q.clone() |
| 224 | q.keysOnly = true |
| 225 | return q |
| 226 | } |
| 227 | |
| 228 | // Limit returns a derivative query that has a limit on the number of results |
| 229 | // returned. A negative value means unlimited. |