
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this row, inside my app everything works fine.
And if im here, i have an another question.
i found this pattern : ` interface Book { name: string; author: string; releaseYear?: string; category?: string; genre?: string[]; isCheckedOut: boolean; }
const databases = new Databases(client);
try { const documents = await databases.listDocuments<Book>( 'your-database-id', 'your-collection-id' );
documents.documents.forEach(book => {
console.log(`Book: ${book.name} by ${book.author}`); // Now you have full type safety
});
} catch (error) { console.error('Appwrite error:', error); } `
But when i try whit "listRows" its doest work. What i mean ? i want use only neccesary data from response. like here, but i need define my interface like this:
export interface Cart {
$id: string;
$sequence: number;
$createdAt: string;
$updatedAt: string;
$permissions: string[];
$databaseId: string;
$tableId: string;
orderItems: OrderItem[];
}
inestead of this:
export interface Cart {
$id: string;
orderItems: OrderItem[];
}
Recommended threads
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- What Happens When You Add a Custom Domai...
