-
Notifications
You must be signed in to change notification settings - Fork 120
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
Get model name at runtime #193
Comments
https://github.com/ryanfitz/vogels/blob/master/examples/modelMethods.js |
Also this looks like a clean solution but don't know if it works. |
In what context do you want to get the model name. From a model item, or from the model class? In my experience, doing model.scan() returns an object that includes the model schema, which at least has the table name for the model. (Scan() doesn't actually make any ddb calls until you call exec()) |
@AaronHarris I'd like to get the model name from the model class |
I've dig in the last hours in the code to look some way to get at runtime the model name. does it exist a util function to achieve this?
The text was updated successfully, but these errors were encountered: