
Hello, I need to get documents from Database that start with "2024-11" but it's not returning anything.
Here current used for this query
`export async function searchLogbookByDate( query: string, // eslint-disable-next-line prettier/prettier userId: number ) { try { let queryArray; queryArray = [ Query.startsWith("date", query), Query.equal("userId", userId), ]; console.log("date query", queryArray);
queryArray as unknown as Query[];
const posts = await databases.listDocuments(
databaseId,
logbookCollectionId,
// eslint-disable-next-line prettier/prettier
queryArray as unknown as string[]
);
console.log(
query,
// eslint-disable-next-line prettier/prettier
"Posts in search logbook by date" + JSON.stringify(posts)
);
if (query === null) throw new Error("Something went wrong");
if (!posts) throw new Error("Something went wrong");
return posts.documents;
} catch (error: any) { Alert.alert("Error", error.message); } }`
Recommended threads
- Appwrite Sites and localStorage Problem ...
I'm currently struggling with the localStorage Problem and Custom Sites. My goal is to move our Flutter Web App to Appwrite Sites. When just deploying it I'm ...
- Relationship fields returning "$sequence...
It looks like today something changed in the backend, I have a project that has certain collections only accessible to teams with specific permissions. Sometime...
- Email Verification on Paid Plans Only?
This might be a dumb question. But do you need to upgrade to a paid plan in order to enable email verification?
