Describe the bug
The API documentation lists changeFeedOptions as an optional parameter for Items.readChangeFeed(), however an object must be passed or the following error is thrown:
Error: changeFeedOptions must be a valid object
This works as expected when an empty object is passed: Items.readChangeFeed({}).
To Reproduce
Steps to reproduce the behavior:
client.container.items.readChangeFeed() with no parameters passedExpected behavior
An error would not be thrown when no parameters are passed because there are no required parameters per the documentation. If the code requires an object, this should be defaulted within the readChangeFeed function itself.
OR
If a changeFeedOptions parameter IS required (this seems sensible), then the documentation should reflect that.
Screenshots
Here are the docs:
https://docs.microsoft.com/en-us/javascript/api/%40azure/cosmos/items?view=azure-node-latest#readchangefeed-changefeedoptions-

Here is my error:

Additional context
Thank you! Let me know if you need any more details 馃槃
@SealedSaint Thanks for the report. Looks like a bug. I'll open a PR but in the meantime, you can work around by passing {}
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.
Thanks, @southpolesteve
Most helpful comment
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.