javascript - Why is supabase not returning any data when I still have rows of data in my table on react native? - Stack Overflow

I am using expo router react native and I am implementing supabase as a database option in my app. I ha

I am using expo router react native and I am implementing supabase as a database option in my app. I have a console.log of the data from the select function but everytime I run it I get [] logged and nothing else. My select function can't read the data in my tables on supabase (my tables do have rows of data in it) How do I fix this issue? Here is the code

const checkTransferForums = async () => {
    const {
      data: { user: User },
    } = await supabase.auth.getUser();

    const { data, error } = await supabase.from('user_forums').select('user_id');

    if (error) {
      console.log('

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745206219a4616605.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信