Questions tagged [supabase]

Supabase is a collection of open source tools to build modern applications quickly and efficiently. It uses the PostgreSQL database to power its authentication, database, and storage features. Use this tag when you are having problems, and not to ask for new features.

Supabase is a combination of open source tools. It builds the features of Firebase using enterprise-grade, open source products. Supabase is not a 1-to-1 mapping of Firebase. Its aim is to give developers a Firebase-like developer experience using open source tools.

Supabase has an official JavaScript library as well as community built Dart, Rust, Kotlin, C# and Python libraries.

Supabase is composed of four components

  • Database
  • Authentication
  • Storage
  • Functions (coming soon)
1213 questions
-1
votes
1 answer

SupaBase plpsql

I am trying to create a function and trigger to run on auth.users insert and cannot get the function to be applied to the table, it is a syntax error and I ma not to familiar with plpgsql. If anyone has an idea where the error is please let me know…
Luke Longo
  • 119
  • 1
  • 7
-1
votes
2 answers

How to stop supabase which is running on localhost 3000?

I wanted to know what supabase is so I installed it using this local development guide enter link description here it was few weeks back, i was simply checking port 3000 and supabase is running i have removed all supabase related folder but still…
Karna04
  • 21
  • 2
-1
votes
1 answer

How to get total likes count of a post from supabase backend?

I have two tables one for post and one for likes. Post table stores all the post information. Likes table has 3 columns id, post_id user_id Now I need help to figure out how to get total number of likes of each post through supabase query. I am…
-1
votes
1 answer

How do you call useContext in React without breaking rules of hooks?

I'm trying to understand how to call a login function for Google or Github inside my context provider. What is the proper way to call a context provider in Next JS without breaking the rule of hooks? // user.js const Context =…
Rob Winters
  • 151
  • 1
  • 10
-1
votes
1 answer

How can I model a limit of number of Rows in a Table in Postgres

i am currently learning how to work with databases in a full stack web development context. I want to model a scenario where students can enroll into a variety of events which have a certain capacity. I already looked into this thread: How to write…
dnik
  • 1
  • 1
-2
votes
0 answers

Why is Object.keys sorting the order of the keys?

Here's my ReactNative code. // measurements are loaded from a jsonb column in postgres (supabase) const measurements = loadFromDb(); console.log('measurements:', measurements); console.log('typeof measurements:', typeof…
Null Head
  • 2,877
  • 13
  • 61
  • 83
-2
votes
2 answers

can I create tables and RLS via any external API or similar?

I need to create a custom admin tool, where I create tables and RLS rules outside the Supabase admin dashboard. Is this possible?
Solsiden
  • 673
  • 1
  • 7
  • 22
-2
votes
4 answers

Why is array.map() not a function?

I want to map an array from react's useState hook, but I get the error: TypeError: documents.map is not a function This is my code: const [docs, setDocs] = useState(documents); const rows = documents.map((doc) => ( …
-2
votes
2 answers

having some problems reading data from Supabase in flutter

I'm trying to build a basic Crud app with Supabase. I'm trying to read some data from a table but when I debug, it shows an error: "unexpected null Value". My model import 'package:tdi2022_charts/models/base_model.dart'; class Equipos implements…
nikos
  • 1
  • 3
-2
votes
1 answer

Is there any clean way to append items to a one-to-many relationship?

Very innocent question If we have an array of items in a table cell, is there any way to append data to it without having the need to fetch the data of the whole row to get its content, in order to finally push the updated data to the cell? I have a…
chipseater_
  • 3
  • 1
  • 3
-2
votes
3 answers

Flutter Supabase - Join Tables

I have 2 tables Department(id, department_name) Programs(id, program_name, department_id) dept_id in Programs is the foreign key from Department table I want to join department_id in Program table and id in Department table I'm unable to do it in…
1 2 3
80
81