"invitee" in one-to-one example in drizzle docs wrong? #4309
Unanswered
hallucinogenizer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the one-to-one relationship example in the drizzle docs, the name "invitee" of the relation seems wrong. It should be "inviter", no? The relation is associated with the
invitedBy
column on the source entity, and points to theid
primary key on the target entity. This means that the target is the "inviter". Meaning if you had a user entity and tried to fetch its "invitee", what you would actually get would be the inviter.I felt this, then I confirmed this and the site's own AI agent says so. Claude also says so.
Conversation with the site's own AI:
Beta Was this translation helpful? Give feedback.
All reactions