https://supabase.com/ logo
#javascript
Title
# javascript
m

Mihai

11/20/2021, 7:32 PM
Hello ! I'm trying to query foreign keys from a different table using the following example :
const { data, error } = await supabase .from('countries') .select(
Copy code
name,
    cities (
      name
    )
)
(this is from the documentation), but I had an issue that there were multiple keys and modified by adding the "!" such as entity:attribute! ( other keys here )
like :
.select(
Copy code
id,
            name,
            profiles:createdby! (
                id,
                username
            )
);
but I'm not receiving the username, I'm only receiving the "id"