When I try to list the rows with queries, there is no column data included in the returned value with forced me to fetch the items one-by-one with ID (which was not the case with older Database module) . Am I doing something wrong?
Example snippet (Go SDK):
TypeScript
docs, err := ServerClient.TablesDB.ListRows(
AuthDB,
EmailVerifyTable,
ServerClient.TablesDB.WithListRowsQueries([]string{
query.Equal("user_id", userID),
query.Equal("email", email),
query.Equal("secret_key", secret),
query.Offset(0),
query.Limit(1),
}),
)
TL;DR
Issue: Developer is unable to retrieve column data when using TablesDB ListRows function with queries.
Solution: Instead of using `query.Select([*])`, developers should specify the columns they want to retrieve in the query. For example, `ServerClient.TablesDB.WithListRowsQueries([]string{"user_id", "email", "secret_key"})` to include specific columns in the returned data.I have tried to use with query.Select([*]), however that was not include the columns either.
Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error