XataX
Xata3y ago
16 replies
PeanutDumplings

Property db doesn't exist on XataClient

With the code
import { getXataClient } from "../../xata";
const xata = getXataClient();
console.log(xata)
// returns
// XataClient {
//   db: {},
//   search: { all: [AsyncFunction: all],  byTable: [AsyncFunction: byTable] },
//   transactions: { run: [AsyncFunction: run] }
}
But when I try
console.log(xata.db);
I get the error:
Property 'db' does not exist on type 'XataClient'
Was this page helpful?