Is it possible to introspect relations?
Let's say I have the following relation def:
is there any way I can write a function that returns the config object?, i.e.
is there any way I can write a function that returns the config object?, i.e.
export const externalUsersRelations = relations(external_users, ({one}) => ({
users: one(users, {
fields: [external_users.user_id],
references: [users.id]
})
}));function one_relations(r) {...}
one_relations(external_usersRelations) // returning [['one', users, {fields:.., references: ..}], ...]