1
0
mirror of https://github.com/lektor/lektor-website.git synced 2025-02-18 13:40:39 +01:00
lektor-website/content/docs/api/db/query/self/contents.lr
2015-12-19 14:52:17 +01:00

20 lines
350 B
Markdown

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
```