Backend (Convex)
API — userAddresses
Generated catalog of Convex functions in convex/userAddresses/. Regenerated by `bun run docs:api`.
Auto-generated from source. Do not edit by hand — run
bun run docs:api.
query (1)
| Function | Description | Args |
|---|---|---|
listMyAddresses | List the current user's addresses (default first, newest next). | {} |
mutation (4)
| Function | Description | Args |
|---|---|---|
createAddress | Create a new address for the current user. | { const user = await authComponent.getAuthUser(ctx); const validationError = validateAddressInput(args); if (validationError) { return { success: false, mess… |
deleteAddress | Delete an address; if it was the default, promote the newest remaining one. | { addressId: v.id("userAddresses") } |
setDefaultAddress | Set an address as the default. | { addressId: v.id("userAddresses") } |
updateAddress | Update an existing address (ownership-checked). | { addressId: v.id("userAddresses"), ...addressFieldsValidator, } |
internalQuery (1)
| Function | Description | Args |
|---|---|---|
getAddressInternal | Ownership-checked fetch for checkout prefill (server-only). | { addressId: v.id("userAddresses"), userId: v.string(), } |