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
A user send a nick with an ! before as trigger.
Query in Mongo will search for all entries matching the username (without -> !)
Result will be sorted for the latest entry and the grouped output will be sent as Message.
like:
-username
-might
-date
I dont know what to do, i'm really so. Maybe im not getting the syntax right, or anything else ist wrong.
Please help me 🙈
Side node: im able to get the result i trying to archive with express + handlebars engine but this is different.
The text was updated successfully, but these errors were encountered:
First i want to thank you for your great work!
I'm really new to node and everything around it.
Since about 2 days im stuck. :(
What i'm trying to build is a query from a mongoDB an send the output as message.
In detail:
Member.aggregate([
{ $group : { _id : '$nick', nick: {$first: '$nick'}, might:{$first: '$might'}}},
{ $sort: {date : -1}
]}
event.reply(member)
});
In Text:
A user send a nick with an ! before as trigger.
Query in Mongo will search for all entries matching the username (without -> !)
Result will be sorted for the latest entry and the grouped output will be sent as Message.
like:
-username
-might
-date
I dont know what to do, i'm really so. Maybe im not getting the syntax right, or anything else ist wrong.
Please help me 🙈
Side node: im able to get the result i trying to archive with express + handlebars engine but this is different.
The text was updated successfully, but these errors were encountered: