You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It prevents the GraphQL mutation to be effective because if the user id is required (and it should).
Your example works as is if the user id is not required but the uuid is not stored in the database.
@arnaudbzn - Ideally the user id is automatically generated at the database layer. For example, using a default value like gen_random_uuid() or auto-incrementing integer should do the trick. Although the id column was intentionally used as text type to support external auth solutions like Auth0 or Firebase, we can fill in uuid to keep it simple.
I will make the default value change as part of the database schema and the blog post instead of changing the code here.
It prevents the GraphQL mutation to be effective because if the user id is required (and it should).
Your example works as is if the user id is not required but the uuid is not stored in the database.
Existing code:
Suggested change:
The text was updated successfully, but these errors were encountered: