Ticket: Migration(imdb.rating)

what are wrong in my code
Bson ratingStringFilter = Filters.type(“imdb.rating”, “number”);
OR
Bson ratingStringFilter = Filters.type(“imdb.rating”, BsonType.STRING);

Please Help Me.mm

Do you want string or number?

I want number.

Are you sure?

I am very doubtful.

The comment says:

// TODO> ....
// ... where 'imdb.rating' is of type string.

see
test code

You are not supposed to change the test code.

Bson ratingStringFilter = Filters.type(“imdb.rating”, “number”);
OR
Bson ratingStringFilter = Filters.type(“imdb.rating”, BsonType.STRING);
Which One work for this.

Bson ratingStringFilter = Filters.type(“imdb.rating”, “number”);
OR
Bson ratingStringFilter = Filters.type(“imdb.rating”, BsonType.STRING);
Which One work for this.

NONE. You want “string”.

Like you wrote:

What do they use? Do you see any BsonType.STRING in the test code?


see it working

Nice!

Next time you publish code, please publish it as text rather than an image. When it is as text we can cut-n-paste the part of interest.