Skip to content

Model methods #5

@naviruishen

Description

@naviruishen

Thanks for the tutorial, its Neat and Easy to understand! Ive been using it as a base for my APP. However, I dont know how can i implement my schema methods inside the controller?
Example:

controller:
Resource(app, '', route, app.models.user).rest();

schema.method:
UserSchema.methods.generateJwt = function(){};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions