Skip to content

RPC function not returning all data in Javascript app? #26686

Answered by silentworks
old-rob asked this question in Questions
Discussion options

You must be logged in to vote

I can't see some of your SQL here but the table you are getting the categories from is likely to have row level security (RLS) turned on and you are trying to make a request to that table without sufficient permission. A easy way to test this is inside of your SQL editor click on role postgres and change to authenticated and then select a user you want to run this query. Also try anon role too and see if the results match your .rpc function call.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by old-rob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants