Skip to content
On this page

Overview

Composables

nuxt-kql offers several composables to return data from KQL queries. All composables are auto-imported and globally available inside your <script setup>.

Types

Common types are importable from the special #nuxt-kql module alias:

Example use-case would be a reactive query using a typed ref():

ts
const query = ref<KirbyQueryRequest>({
  query: 'site',
  select: {
    title: true,
    children: true,
  },
})

Released under the MIT License.