mongodb externs and EntityType.SCHEME