client.from
Start a query builder on a table
Signature
class Client {
from<T>(table: string): QueryBuilder<T>
}
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| table | | yes | Table name |
Examples
import { Client } from '@blueforge/client'
const bf = new Client({ apiKey: process.env.BF_API_KEY!, url: 'https://your-project.blueforge.dev' })
const { data } = await bf.from('users').select('*', { limit: 10 })
Throws
| Error | Condition |
|---|---|
| API request failed |
| Network issue |
Pitfalls
- No auto-completion — table names are not validated until the query executes
See also
{auto-injected}
Tested against
{auto-injected}