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
The Assets Database Type and the Employee Database type are linked. This is a hard link for the Assets type as it has a REQUIRED field for the Employee's User ID. This ensures that an employee can manage multiple assets at the same time.
MongoDB also has nice support for searching by certain fields meaning that all of the Assets an employee is responsible for can be grabbed quite easily.
Scope
This issue will be complete once you can get the Employee information through the Assets object. I assume this will be done through a .getEmployee() function or something of similar nature.
The information should also be grabbable via the Employee on a .getAssets() function and through a completely independent database function getAssetsByEmployee().
Description
The Assets Database Type and the Employee Database type are linked. This is a hard link for the Assets type as it has a REQUIRED field for the Employee's User ID. This ensures that an employee can manage multiple assets at the same time.
MongoDB also has nice support for searching by certain fields meaning that all of the Assets an employee is responsible for can be grabbed quite easily.
Scope
This issue will be complete once you can get the Employee information through the Assets object. I assume this will be done through a
.getEmployee()
function or something of similar nature.The information should also be grabbable via the Employee on a
.getAssets()
function and through a completely independent database functiongetAssetsByEmployee()
.Notes
Further reading into how to do a View Collection (similar to an SQL JOIN statement.):
https://www.mongodb.com/docs/manual/core/views/join-collections-with-view/
The text was updated successfully, but these errors were encountered: