teri
teri
XXata
Created by teri on 6/27/2024 in #help
I need help with this Django project
No description
7 replies
XXata
Created by teri on 4/27/2024 in #help
Get one record
I am trying to add an onClick event handler on the button Delete and creating a separate file for the xata client, which I will import. How can I go about it? https://track-trip-dashboard-with-xata-next.vercel.app/dashboard/note/rec_com0uagjjap6athudr6g
// filter.js
"use server";

import { getXataClient } from "@/src/xata";

const xata = getXataClient();

export async function filter(id) {
await xata.db.notes.read(id);
}
// filter.js
"use server";

import { getXataClient } from "@/src/xata";

const xata = getXataClient();

export async function filter(id) {
await xata.db.notes.read(id);
}
"use client"

export default function NoteDetail({ params }) {
return (
<>
<Header name={"Note Detail"} />
<div className='flex mb-4'>
<Link
href={"#"}
className='px-7 py-2 bg-gray-300 rounded mr-4 hover:bg-gray-200'>
Edit
</Link>
<button className='px-7 py-2 bg-red-300 rounded hover:bg-red-200 hover:cursor-pointer'>
Delete
</button>
</div>
</>
);
}
"use client"

export default function NoteDetail({ params }) {
return (
<>
<Header name={"Note Detail"} />
<div className='flex mb-4'>
<Link
href={"#"}
className='px-7 py-2 bg-gray-300 rounded mr-4 hover:bg-gray-200'>
Edit
</Link>
<button className='px-7 py-2 bg-red-300 rounded hover:bg-red-200 hover:cursor-pointer'>
Delete
</button>
</div>
</>
);
}
12 replies
XXata
Created by teri on 4/21/2024 in #help
Link to table
I need help in understanding link to table when creating a new schema for a table connecting to another table in the database. Kindly share resources or jump on a call with me to get a clearer picture.
11 replies
XXata
Created by teri on 3/29/2024 in #help
Route handlers in Next.js
How do I use route handlers in next.js to post data to Xata?
20 replies
XXata
Created by teri on 9/19/2023 in #help
Error in Next.js app with inserting a record
Why is the error persisting?
Uncaught Error: You are trying to use Xata from the browser, which is potentially a non-secure environment. If you understand the security concerns, such as leaking your credentials, pass `enableBrowser: true` to the client options to remove this error.
Uncaught Error: You are trying to use Xata from the browser, which is potentially a non-secure environment. If you understand the security concerns, such as leaking your credentials, pass `enableBrowser: true` to the client options to remove this error.
9 replies