-
Notifications
You must be signed in to change notification settings - Fork 200
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
ext dashboard api #267
ext dashboard api #267
Conversation
|
}, | ||
); | ||
|
||
router.get('/', async (req, res, next) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need limit and offset for this guy ?
const dashboards = await Dashboard.find( | ||
{ team: teamId }, | ||
{ _id: 1, name: 1, charts: 1, query: 1 }, | ||
).sort({ name: -1 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to expose sort query to the user (like name or createdAt)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
4ee1f09
to
0663701
Compare
No description provided.