HelloCommand class
The Hello command takes the following form:
db.runCommand( { hello: 1 } )
The hello command accepts optional fields saslSupportedMechs: <db.user> to return an additional field hello.saslSupportedMechs in its result and comment
db.runCommand( { hello: 1, saslSupportedMechs: "<db.username>", comment: <String> } )
Constructors
-
HelloCommand(Db db, {String? username, HelloOptions? helloOptions, Map<
String, Object> ? rawOptions, Connection? connection})
Properties
- canRetryRead → bool
-
no setterinherited
- collection ↔ DbCollection?
-
getter/setter pairinherited
-
command
↔ Map<
String, Object> ? -
getter/setter pairinherited
- connection ↔ Connection?
-
getter/setter pairinherited
- db ↔ Db
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
options
↔ Map<
String, Object> -
getter/setter pairinherited
- readPreference ↔ ReadPreference?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session ↔ Object?
-
getter/setter pairinherited
Methods
-
$buildCommand(
) → Map< String, Object> -
inherited
-
clearSession(
) → void -
inherited
-
execute(
{bool skipStateCheck = false}) → Future< Map< String, dynamic> > -
executeDocument(
) → Future< HelloResult> -
hasAspect(
Aspect aspect) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processOptions(
Map< String, dynamic> command) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited