https://supabase.com/ logo
Join Discord
Powered by
# help
  • s

    Scott Prins

    01/18/2022, 6:56 PM
    I would think that is a bit more complicated than what I had suggested, are you using any authentication or is it all public?
  • k

    kresimirgalic

    01/18/2022, 6:57 PM
    i am using authentication, and i already have a table post_activities where i store comments, likes, so its logical what you are saying
  • k

    kresimirgalic

    01/18/2022, 6:57 PM
    so i will probably store new row with type: 'view', with post id and user id
  • s

    Scott Prins

    01/18/2022, 6:57 PM
    public IP addresses change occasionally, so you would have to take that into consideration using IP as a relation
  • m

    Mubo

    01/18/2022, 8:13 PM
    Hey there is there a way to format date column to 'dd.mm.yyyy' and filter it using LIKE operator ?
    k
    • 2
    • 11
  • k

    ktosiek

    01/18/2022, 9:44 PM
    filtering dates
  • w

    wiesson

    01/18/2022, 10:13 PM
    Can I join a many to many relation to a single object instead of an array? (I only expect one result anyway) - edit: got it 🙂
  • w

    willm

    01/19/2022, 5:11 AM
    My supabase magic link emails all go to spam. Is there a way I can fix it?
  • s

    Scott P

    01/19/2022, 5:40 AM
    https://discord.com/channels/839993398554656828/885237287280070708/885238212463837274
  • m

    Marc

    01/19/2022, 6:12 AM
    await supabase.from("*").delete();
    is this possible to reset the DB without dropping tables?
  • l

    lorencerri

    01/19/2022, 6:43 AM
    Is there a way to enable delete cascade on the Supabase UI?
  • k

    ktosiek

    01/19/2022, 7:14 AM
    What is the format of the URL in
    supabase db remote set URL
    ? An URL that works with psql causes an error with supabase: Error: Error parsing connection string: Make sure the URL is percent-encoded.
    • 1
    • 2
  • x

    xa

    01/19/2022, 8:30 AM
    Hi, im getting invalid refresh token even though the time of request is less than the expires_at time?
    k
    • 2
    • 6
  • r

    rahuldubey

    01/19/2022, 8:49 AM
    #843999948717555735 Hello, Is it possible to run a query with filters on another column, like: final res = await supabase .from('cities') .select('*') .eq('columnA', 'columnB') .execute();
  • d

    donjo9

    01/19/2022, 8:54 AM
    is there a way with the Supabase CLI to clean up after i close a terminal without termination supabase local instance first supabase start wont run because all the docker containers are already there
  • d

    donjo9

    01/19/2022, 8:55 AM
    i have cleaned up manually, but would be nice to do it with a single Supabase CLI command
  • r

    rtzon

    01/19/2022, 9:04 AM
    I have a table with group memberships (group id user id) and i want to create RLS to enforce that when someone creates a new post, the post's "group" column is only with an eligible group id. Is this possible with RLS? I'm having trouble coming up w/ the SQL expression. Here is the SQL expression to get the valid group id:
    Copy code
    SELECT group_id from group_memberships WHERE user_id = auth.uid()
  • d

    Denzo

    01/19/2022, 4:32 PM
    Is it possible to send additional params using the
    .signIn()
    method? I know it's possible to set metadata with the
    .signUp()
    call, but since we are mostly using OAuth providers and magic email links we are using
    signIn()
    everywhere
  • i

    idkidm

    01/19/2022, 5:08 PM
    Does anyone know if something like this is possible using Magic.Link and Supabase? Do the cloud functions here look possible to emulate in Postgres functions? https://magic.link/posts/magic-firebase-integration
  • l

    LeoSonnekus

    01/20/2022, 1:32 AM
    Hey I need to collect more info on email signup, is that possible, I've got a table for user profiles with all the necessary columns and I was hoping I could send that info to the appropriate place when the user signs up but I know you can't add columns to the Auth table. what's the best way to setup my backend so I can collect a bunch of meta information (as text) that get's submitted on signup?
    s
    • 2
    • 3
  • v

    Vexmachina

    01/20/2022, 1:54 AM
    Can someone help me figure out why I'm getting a 406 error when trying to retrieve my user info following the Supabase quick start documentation?
  • v

    Vexmachina

    01/20/2022, 1:55 AM
    I have essentially their unmodified provided code. I'm able to login, I'm able to upload a profile picture and user information, and I see it correctly stored in the database through the Supabase admin panel. However when I log back in, it just refuses to load the profile pic and user information and instead gives me a 406 error.
  • v

    Vexmachina

    01/20/2022, 1:56 AM
    Relevant code -
    Copy code
    javascript
    Account.js
    import { useState, useEffect } from "react";
    import { supabase } from "../utils/supabaseClient";
    import Avatar from "./Avatar";
    
    export default function Account({ session }) {
      const [loading, setLoading] = useState(true);
      const [username, setUsername] = useState(null);
      const [website, setWebsite] = useState(null);
      const [avatar_url, setAvatarUrl] = useState(null);
    
      useEffect(() => {
        getProfile();
      }, [session]);
    
      async function getProfile() {
        try {
          setLoading(true);
          const user = supabase.auth.user();
          console.log(user);
    
          let { data, error, status } = await supabase
            .from("profiles")
            .select(`username, website, avatar_url`)
            .eq("id", user.id)
            .single();
    
          console.log(status);
          if (error && status !== 406) {
            throw error;
          }
    
          if (data) {
            setUsername(data.username);
            setWebsite(data.website);
            setAvatarUrl(data.avatar_url);
          }
        } catch (error) {
          alert(error.message);
        } finally {
          setLoading(false);
        }
      }
  • v

    Vexmachina

    01/20/2022, 2:01 AM
    The error in browser:
  • n

    nkeating

    01/20/2022, 3:36 AM
    Hello - our application is using algolia for search and supabase for db.. whats the best route to keep everything in sync (e.g trigger updates to algolia indices when there are changes in supabase)?
    • 1
    • 1
  • s

    silentworks

    01/20/2022, 6:24 AM
    Additional information on signup
  • j

    jbergius

    01/20/2022, 7:41 AM
    Is it just me, or is anyone else unable to sign in to the dashboard now as well? I get the following error message in the URL:
    Copy code
    https://app.supabase.io/?error=server_error&error_description=Error+getting+user+email+from+external+provider
  • c

    chipilov

    01/20/2022, 8:17 AM
    I just logged in successfully
  • m

    mellson

    01/20/2022, 1:12 PM
    Generating Types | Supabase
  • n

    nxx

    01/20/2022, 1:46 PM
    How can I set the policy to grant insertion rights only to designated users?
    s
    • 2
    • 2
1...199200201...316Latest