lektor-website/content/docs/api/db/query/self/contents.lr

20 lines
350 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: self
---
summary: Returns the item at the query itself.
---
type: property
---
body:
Because a query object filters "downwards" there this is a way access the item
at the level of the query object. It's particularly useful for debugging
in the `shell`:
## Example
```pycon
>>> root = pad.root
>>> root.children.query.self == root
True
```