Skip to content

Query builder bug: inRandomOrder method is not implemented #88

@michaelvcolianna

Description

@michaelvcolianna

In this commit last year, the inRandomOrder method is commented out.

The docs mention random ordering, but when trying to use the method, an error shows up in the console: TypeError: __vite_ssr_import_0__.DB.table(...).inRandomOrder is not a function

Code used:

const randomUser = await db.table('users')
  .inRandomOrder()
  .first();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions