alihammad
Error: branch [sharai:develop] has search disabled
Hi there, I used to build products with Xata as it's powerful and has a free plan. I'm currently building a product and faced a search error. I thinks it's because of pricing update.
So I'd like to ask if I can have a fully featured plan for testing as used to be before moving to production.
Thanks
2 replies
Is Xata powerful?
I'm building a SaaS app like Shopify, which has a lot of functions, features, and active users. I'd like to use Xata as the main data handler as it has a ton of features. However, I'm still not sure, I see developers building database solutions from scratch, so I don't know which option I should choose. Can I rely on Xata to handle a lot of data? Thanks :xatafly:
2 replies
Search Relation table
Hi, I'm building a searching feature, and one of the columns "invoice" has a relation to a different table "customer".
I'd like to know how can I access the name of the customer within the invoice. Here's the code:
import { getXataClient } from "@/app/xata";
const xata = getXataClient();
export const searchInvoice = async (phrase: string) => {
const results = await xata.db.invoice.search(phrase, {
target: ["customer.name", "products", "address"],
fuzziness: 1,
prefix: "phrase",
});
return results;
};
Thanks in advance2 replies