Open korzhanov opened 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
auth-docs | ❌ Failed (Inspect) | Apr 24, 2024 9:24pm |
Just curious why the current tests pass and why this isn't necessary for createSession
or createVerificationToken
, for example, then? :thinking:
☕️ Reasoning
Dgraph will generate the ID by itself. In Dgraph, every node has a unique 64-bit identifier that you can expose in GraphQL using the ID type. An ID is auto-generated, immutable and never reused. Each type can have at most one ID field.
The ID type works great when you need to use an identifier on nodes and don’t need to set that identifier externally DGraph type docs
Since next-auth.js or auth.js creates a new user id, this causes an error and does not save the entry to dgraph
🧢 Checklist
🎫 Affected issues
📌 Resources