|{{Code|db:path($node)}}
|Returns the path of the database document in which the specified {{Code|$node}} is stored.
|}
The {{Code|fn:document-uri()}} and {{Code|fn:base-uri()}} functions return URIs that can also be reused as arguments for the {{Code|fn:doc()}} and {{Code|fn:collection()}} functions. As a result, the following example query always returns {{Code|true}}: