Skip to content

Instantly share code, notes, and snippets.

@selbyk
Last active March 10, 2023 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selbyk/3a5cf79909cb6b1904a6c13a63c473bd to your computer and use it in GitHub Desktop.
Save selbyk/3a5cf79909cb6b1904a6c13a63c473bd to your computer and use it in GitHub Desktop.
// type Test = ReturnType<supabaseClient.from('a_table').select('*, a_foreign_row:a_foreign_table!a_foreign_row_id (*)')>;
type Test = GetResult<
Database['public'],
Database['public']['Tables']['a_table']['Row'],
'*, a_foreign_row:a_foreign_table!a_foreign_row_id (*)'
>;
type F = Test['a_foreign_row'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment