Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed May 31, 2024
1 parent f2d9e7a commit c769904
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface Product {
currency: string
}
const { create, select, remove } = useSurrealDB()
const { create, remove, select } = useSurrealDB()
const search = ref('products')
const { data, error, execute } = await select<Product[]>(search, {
Expand Down
8 changes: 6 additions & 2 deletions src/runtime/composables/surreal-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export function useSurrealDB(overrides?: Overrides) {
}

// TODO: info
// TODO: insert [ thing, data ]

// insert [ thing, data ]
async function $insert<T = any>(
thing: MROGParam<T, 'insert', 0>,
opts?: Overrides & { data?: MROGParam<T, 'insert', 1> },
Expand All @@ -79,7 +80,8 @@ export function useSurrealDB(overrides?: Overrides) {
}

// TODO: invalidate
// TODO: merge [ thing, data ]

// merge [ thing, data ]
async function $merge<T = any>(
thing: MROGParam<T, 'merge', 0>,
opts: Overrides & { data: MROGParam<T, 'merge', 1> },
Expand Down Expand Up @@ -178,7 +180,9 @@ export function useSurrealDB(overrides?: Overrides) {
}

// TODO: signin [ ... ]

// TODO: signup [ NS, DB, SC, ... ]

// TODO: update [ thing, data ]

async function $version(ovr?: Overrides) {
Expand Down

0 comments on commit c769904

Please sign in to comment.