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
Create a model prototype to include the following methods to be inherited to new Models.
Methods for all models (open to expansion!)
Method : Description
all : returns all data for that attribute
create : Accepts an attributes object with all the details about whatever we are creating
findBy : Accepts an attributes object containing the attribute to find by: {id: 1} This will allow finding games by tournament, games by player, and so forth.
updateOne : Accepts the whole object representing one item of this model type, updates that item.
The text was updated successfully, but these errors were encountered:
Create a model prototype to include the following methods to be inherited to new Models.
Methods for all models (open to expansion!)
all
: returns all data for that attributecreate
: Accepts an attributes object with all the details about whatever we are creatingfindBy
: Accepts an attributes object containing the attribute to find by: {id: 1} This will allow finding games by tournament, games by player, and so forth.updateOne
: Accepts the whole object representing one item of this model type, updates that item.The text was updated successfully, but these errors were encountered: