pub(crate) fn binding_names(&self) -> (String, String) {
        if let Some(ref prefix) = self.prefix {
            let first = prefix.first().unwrap().to_string();

            (first.clone(), first)
        } else {
            let right = self.order_by.field.db_name().to_owned();

            let left = if right.starts_with('_') {
                right.strip_prefix('_').unwrap().to_owned()
            } else {
                right.to_owned()
            };

            (left, right)
        }
    }
/// The Mongo binding name of this orderBy, required for cursor conditions.
/// For a relation field, this is only the first item of the path (e.g. orderby_TestModel_1)
/// Returns 2 forms, one for the left one and one for the right one. The left one is
/// escaped for usage in user-defined variables.
The Mongo binding name of this orderBy, required for cursor conditions.
For a relation field, this is only the first item of the path
Returns 2 forms, one for the left one and one for the right one. The left one is
escaped for usage in user-defined variables.
The Mongo binding name of this orderBy required for cursor conditions . For a relation field this is only the first item of the path Returns 2 forms one for the left one and one for the right one . The left one is escaped for usage in user - defined variables .
pub(crate) fn binding_names(&self) -> (String, String) {
        if let Some(ref prefix) = self.prefix {
            let first = prefix.first().unwrap().to_string();
            (first.clone(), first)
        } else {
            let right = self.order_by.field.db_name().to_owned();
            let left = if right.starts_with('_') {
                right.strip_prefix('_').unwrap().to_owned()
            } else {
                right.to_owned()
            };
            (left, right)
        }
    }
pub ( crate ) fn binding_names ( & self ) -> ( String , String ) { if let Some ( ref prefix ) = self . prefix { let first = prefix . first ( ) . unwrap ( ) . to_string ( ) ; ( first . clone ( ) , first ) } else { let right = self . order_by . field . db_name ( ) . to_owned ( ) ; let left = if right . starts_with ( '_' ) { right . strip_prefix ( '_' ) . unwrap ( ) . to_owned ( ) } else { right . to_owned ( ) } ; ( left , right ) } }
The Mongo binding name of this orderBy, required for cursor conditions.
The Mongo binding name of this orderBy required for cursor conditions .
&self