Mongodb id validation

What kind of a syntax is this? :)