IT Father
IT Father
WWasp-lang
Created by IT Father on 8/25/2024 in #đŸ™‹questions
How to Automatically Create Default Values in a Related Table on User Signup?
Version: 0.13.2 I'm building a project using Wasp-lang where I need to automatically create default entries in a Priority table whenever a user signs up via Google Auth (no custom fields). Specifically, when a new user is registered, I want to insert predefined rows in the Priority table linked to that user. What is the recommended approach for implementing this logic in Wasp-lang following best practices? Should I use a signup hook, or is there another method I should consider? Any advice on structuring this feature would be greatly appreciated!
9 replies