[DOCS-15686] [Server] showExpandedEvents example has incorrect syntax Created: 14/Oct/22  Updated: 30/Oct/23  Resolved: 18/Jan/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Vishnu Kaushik Assignee: Ian Fogelman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 3 weeks ago
Epic Link: DOCSP-11701

 Description   

The example given here has a syntax error. It doesn't work when I copy paste it into my shell:

let cur = db.names.aggregate( [
   $changeStream: {
      showExpandedEvents: true
   }
] )
uncaught exception: SyntaxError: missing ] after element list :



 Comments   
Comment by Githook User [ 18/Jan/23 ]

Author:

{'name': 'ianf-mongodb', 'email': '85948430+ianf-mongodb@users.noreply.github.com', 'username': 'ianf-mongodb'}

Message: DOCS-15686 v6.0 (#2367)

Comment by Githook User [ 18/Jan/23 ]

Author:

{'name': 'ianf-mongodb', 'email': '85948430+ianf-mongodb@users.noreply.github.com', 'username': 'ianf-mongodb'}

Message: DOCS-15686 Fixing Change Event Syntax error (#2360)

Generated at Thu Feb 08 08:13:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.