john-kelly / elm-postgrest

Make PostgREST requests in Elm
109 stars 14 forks source link

BelongsTo vs HasOne #47

Closed john-kelly closed 6 years ago

john-kelly commented 7 years ago

based on my shallow exploration, it appears that these are different. i do not know how or why, so this may be worth looking into.

john-kelly commented 7 years ago

this one is also interesting because it's not really something that sql has a strong opinion about.

for the context of our api -- the difference does not appear to really matter. i currently believe that having hasOne ONLY makes sense, however, it appears that other communities do something a bit different (depending on the side of the FK)

this one needs to be explored more.