BlueForge Docs

client.from

Start a query builder on a table

Signature

class Client {
  from<T>(table: string): QueryBuilder<T>
}

Parameters

ParamTypeRequiredDescription
table
string
yesTable 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

ErrorCondition
ApiError
API request failed
NetworkError
Network issue

Pitfalls

  • No auto-completion — table names are not validated until the query executes

See also

{auto-injected}

Tested against

{auto-injected}