Back

ListDocuments with Go

  • 0
  • Self Hosted
  • Databases
Shiba
21 Aug, 2024, 05:13

documents, err := appwriteDatabases.ListDocuments( databaseID, collectionID, appwriteDatabases.WithListDocumentsQueries([]string{ fmt.Sprintf("limit=%d", perPage), fmt.Sprintf("offset=%d", offset), }), )

TypeScript
exit status 1```
TL;DR
Developers trying to use the `ListDocuments` function with Go encountered an error `Invalid query: Syntax error` while specifying the limit and offset parameters. This error is due to incorrect formatting of the queries. Ensure the format is correct when passing the queries in the `WithListDocumentsQueries` function.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more