Skip to content

docs: clarify db.from() method chaining order #14

@MajorTal

Description

@MajorTal

Problem

Not documented whether db.from('t').update({...}).eq('id', 1) and db.from('t').eq('id', 1).update({...}) are equivalent. Had to guess.

Suggested Solution

Add a note to the db.from() docs: "Filter methods (.eq(), .gt(), etc.) and action methods (.select(), .insert(), .update(), .delete()) can be chained in any order."

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfeedback:wild-lycheeFeedback from Wild Lychee build

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions