```prisma.user.count({ where: { ...
# orm-help
h
Copy code
prisma.user.count({
        where: {
            have a 1-to-1 relation with "activation" table.
        }
    });
p
prob want to check if activation id is not null
h
But the relation is optional in user, it is activation that is referencing user, should it be the opposite way?
r
@Halvor 👋 Could you share your schema?
h
Sorry i need to rethink this, think my initial setup here was wrong. So don't have the particular schema available right now, but thanks for helping 🙂
👍 1