Update not permitted while document contains errors

hi. i signed on mongodb a week ago!..i created a collection ‘users’ and added a few fields.
now, i want to add a new field but change its type to boolean. when i try to dot hat it gives the following error: Update not permitted while document contains errors.

any idea why?

Yes. It is because

Share a screenshot of the document and we might be able to help what is wrong.

the screen shot is below. the field i am trying to create is ‘thrugoogle’ and it needs to be a boolean. when i change the string to boolean it gives me ther error

if i leave the field as a string, it works fine

For a boolean field, the only 2 values are true and false. From your screenshot it looks like you are trying to leave the field blank.