Should SignIn be a query or mutation? The only in...
# orm-help
h
Should SignIn be a query or mutation? The only interaction with the DB is a query. Such as
Copy code
const user = await ctx.db.query.user({ where: { email } });
But the examples I have seen create it as a mutation. Is it because you can call it onSubmit of a form?
b
I think it should be a mutation, in some system, the server save token that's created when signing, or send notifications to other devices,...