Groups
Groups
Sign in
Groups
Groups
mongodb-user
Conversations
About
Send feedback
Help
How to create a view using node driver?
236 views
Skip to first unread message
Andrej Rapoport
unread,
Mar 29, 2018, 7:56:57 PM
3/29/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
Hi,
is it possible to create views using the Node.js MongoDB Driver (3.0)? There is no db.createView() in the driver's API reference...
Thanks!
Andrej Rapoport
unread,
Mar 29, 2018, 8:30:52 PM
3/29/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I found it myself. It can be done with the
command
method
client
.
db
(
"db1"
).
command
(
{
create
:
"viewName"
,
viewOn
:
"collectionName"
,
pipeline
:
[
...
]
});
Reply all
Reply to author
Forward
0 new messages