Nice to see such an active slack channel! I've go...
# prisma-whats-new
e
Nice to see such an active slack channel! I've got a question on Auth0 and user creation. I've Integrated with Auth0 and successfully inserted my own user via the graphQL API / frontend - using the provided createUser mutation. If re-run (createUser) I get a predictable error - user already exists with this auth0 identity. Do I then need to have my web app 1) query Users and THEN only if non-existing 2) createUser? Or is there a createUserIfMissing mutation (or similar) that would make this a single step?
Atomic operations make me feel better =D
Thinking maybe I want updateOrCreateUser
I suppose for that matter, I'm now wondering how I efficiently lookup my User from the Auth0 sign-in data (GraphQL query over Users by auth0UserId?
Yeah, that worked (query with auth0UserId)
Still wondering if I can do this in a single operation though - as opposed to a Texas two-step