build-query-object ( query -- selector )


Vocabulary
mongodb.operations.private

Inputs
queryan object


Outputs
selectoran object


Definition


:: build-query-object ( query -- selector )
H{ } clone :> selector query {
[ orderby>> [ "$orderby" selector set-at ] when* ]
[ explain>> [ "$explain" selector set-at ] when* ]
[ hint>> [ "$hint" selector set-at ] when* ]
[ query>> "query" selector set-at ]
} cleave selector ; inline