Skip to content
← Back to Index

dynamicQuery

filtrera
dynamicQuery `<query>`

dynamicQuery is similar to query except it takes a map or record as argument. This makes it possible to run queries that are constructed at runtime. Similarly, the response value is not known at compile time and must therefor be pattern matched in order to be read.

The structure of the query is identical to a regular Graph navigation.

Error Handling

Failure to parse the query or other errors will be returned as QueryError.

Paging

Paging is done transparently and lazily. There's no limit to how many records can be fetched, but watch your memory usage if you buffer the result.

Examples

filtrera
from dynamicQuery {
  edge = 'orders'
  filter = 'createdAt > 2025-01-01'
  node = {
    fields = ['orderNumber']
  }
}

© 2024 Hantera AB. All rights reserved.