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();
In this commit last year, the
inRandomOrdermethod 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 functionCode used: