supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
962 stars 128 forks source link

feat: detect one-to-one relationships #491

Closed soedirgo closed 7 months ago

soedirgo commented 7 months ago

What kind of change does this PR introduce?

feature

What is the current behavior?

Doesn't detect one-to-one relationships - foreign table would be typed as T[]

What is the new behavior?

Foreign table on a one-to-one relationship would be typed as T | null

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 1.9.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: