summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/src/reference/types.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index 13ca8720..715427f3 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -604,6 +604,13 @@ field does not exist or fails with an error if no default value was specified.
A default value to return if the field does not exist.
- returns: any
+### fields()
+Return the fields of this content.
+
+```example
+#repr(rect(width: 10cm, height: 10cm).fields())
+```
+
### location()
The location of the content. This is only available on content returned by
[query]($func/query), for other content it will fail with an error. The