const data = await db.select().from(entityRelations).where(or(
eq(entityRelations.entityOne, id),
eq(entityRelations.entityTwo, id)
)).leftJoin(entities, or(
eq(entities.id, entityRelations.entityOne),
eq(entities.id, entityRelations.entityTwo)
));
const data = await db.select().from(entityRelations).where(or(
eq(entityRelations.entityOne, id),
eq(entityRelations.entityTwo, id)
)).leftJoin(entities, or(
eq(entities.id, entityRelations.entityOne),
eq(entities.id, entityRelations.entityTwo)
));