Auto-imports

This module automatically imports a configurable array of functions from @builder.io/sdk-vue. This makes it simple to use the Builder SDK in your project without having to manually import the functions you need.

<template>
  <div>
    <!-- ... -->
  </div>
</template>

<script setup lang="ts">
// Your API key is automatically added to the runtime config
const { apiKey } = useRuntimeConfig().public.builderIO

const { data } = await useAsyncData(async () => await fetchOneEntry({
  apiKey,
  model: 'my-model',
  userAttributes: {
    urlPath: '/path'
  }
}))
</script>

See the @builder.io/sdk-vue documentation for specific information.