Hi 👋 I'm generating types as recommended here: ht...
# help
c
Hi 👋 I'm generating types as recommended here: https://supabase.com/docs/reference/javascript/generating-types Unfortunately it doesn't register types for linked tables so I have to go and manually add them. e.g. users table is linked to notes table but the types do not reflect it even though the data returned from Supabase is
Copy code
user: { notes: [{...}]
Is there a way to generate the types so that they reflect the actual response?
m
Hi @User did you get a reply for this yet? I'm trying to figure out the exact same thing
c
Nothing yet @User . I've had a couple of ideas, one is to patch the response automatically in a script (although thats not very smart) and the other is that knex seems to be able to generate types, although that requires config and is a bit more complicated than it out to be
m
Okay, thanks for the quick reply!
Do you know if the upcoming native solution will support this? Haven’t seen much info on what’s planned
c
I don't know anything about the rumoured upcoming native solution either. Hopefully it does come out before my schema changes next
m
Ha ha, yeah let’s hope so