-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add a new npm module to the plugin #34
Comments
If the UUID package is installed in your project, you should be able to use it in the seed-data.js file. How are you using it currently? IIRC, you have to us CommonJS to import - you have to use something like And then you can do: Note: if you're using this for generating IDs, you don't have to provide the ID attribute in the Seed data script. Under the hood, it will set a random UUID if you don't specify one yourself. |
I have installed the plugin to seed my data. However, my data requires a uuid to be generated . I have uuid installed in my lambda layer function. But I am not sure how to make use of the npm module inside my seed-data.js file. I searched in Google to figure out an answer to this but couldn't find one, hence raising it here.
Thanks.
The text was updated successfully, but these errors were encountered: