Skip to main content

Interface: XQueryFn

Defined in: lang-xquery/src/language/language.ts:81

XQuery-specific extension of Fn that can suppress automatic argument atomization.

Extends​

Properties​

impl​

impl: (...args) => any

Defined in: core/dist/extension.d.ts:18

Implementation function; receives argument values and returns the result.

Parameters​

ParameterType
...argsany[]

Returns​

any

Inherited from​

Fn.impl


name​

name: string

Defined in: core/dist/extension.d.ts:12

Unique name used to look up this function.

Inherited from​

Fn.name


outputSchema?​

optional outputSchema?: ASTIdentifier[]

Defined in: core/dist/extension.d.ts:16

If the function is used as a tuple source, this is the schema of its output.

Inherited from​

Fn.outputSchema


pure?​

optional pure?: boolean

Defined in: core/dist/extension.d.ts:20

No side effects, same output for same input (careful: () => ({}) is not pure).

Inherited from​

Fn.pure


schema?​

optional schema?: string | symbol

Defined in: core/dist/extension.d.ts:14

Schema (name prefix) of the function.

Inherited from​

Fn.schema


skipAtomization?​

optional skipAtomization?: boolean

Defined in: lang-xquery/src/language/language.ts:83

When true, arguments are passed as-is, bypassing XQuery atomization.