Skip to content

CSHARP-3748: Versioned API Strict Migration Example for Docs. #651

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

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

DmitryLukyanov
Copy link
Contributor

No description provided.

{
Console.WriteLine(ex.Code); // 323
Console.WriteLine(ex.CodeName); // APIStrictError
Console.WriteLine(ex.Message); // Command count failed: Provided apiStrict:true, but the command count is not in API Version 1. Information on supported commands and migrations in API Version 1 can be found at https://dochub.mongodb.org/core/manual-versioned-api.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ticket says that the result here should be just: Provided apiStrict:true, but the command count is not in API Version 1", but the real output is bigger, since we use Console.WriteLine, probably it will be better to print the whole error message

@DmitryLukyanov DmitryLukyanov requested a review from jyemin October 13, 2021 21:45
@jyemin jyemin requested review from JamesKovacs and removed request for jyemin October 13, 2021 21:54
Copy link
Contributor

@JamesKovacs JamesKovacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DmitryLukyanov DmitryLukyanov merged commit 67ca59a into mongodb:master Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants