Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting number of rows returned by a SELECT #50

Open
K02D opened this issue Apr 1, 2024 · 0 comments
Open

Counting number of rows returned by a SELECT #50

K02D opened this issue Apr 1, 2024 · 0 comments

Comments

@K02D
Copy link

K02D commented Apr 1, 2024

How to count the number of rows returned by a select query? The following code throws error "failed to count messages in thread: PGRST200: Could not find a relationship between 'message' and 'COUNT' in the schema cache":

var messageCount int64
err = s.supabaseClient.DB.From("message").Select("COUNT(*)").Eq("thread_id", threadID).Execute(&messageCount)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant