Skip to content

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>.

Type Declarations

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', 'isListed']
})

Released under the MIT License.