vertx / io.vertx.reactivex.ext.auth.mongo / MongoAuth / setRoleField

# setRoleField

`open fun setRoleField(fieldName: String): MongoAuth`

Set the name of the field to be used for the roles. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth. Roles are expected to be saved as JsonArray

### Parameters

`fieldName` - the name of the field to be used

Return
the current instance itself for fluent calls