This is a surrealdb client build for VueJS!
npm install surrealdb.vue> This is WIP. If you have ideas / suggestions please open an issue!
surrealdb.vue npm-package. We require the install of the vue (version >= 3.2) and surrealdb.js (version >= 0.4) packages.``shnpm
npm i surrealdb.vue surrealdb.js vue
API
$3
We export the Client of surrealdb.js nearly as is. For more info look at the docs of surrealdb.js.$3
We export functions query and queryLive that return reactive data. > Note:
queryLive is currently a copy of query and is currently not live!The return has the form of
`ts
interface VueReturn {
loading: Ref;
data: ShallowRef;
error: Ref;
reload: () => void;
}
``