pub async fn wait_for(
        &self,
        table: &str,
        filter: &Value,
        fields: &str,
        timeout: Option<u32>,
    ) -> ClientResult<Value> {
        let value = self
            .query(
                table,
                filter,
                fields,
                None,
                None,
                timeout.or(Some(self.config.wait_for_timeout)),
            )
            .await?;

        if !value[0].is_null() {
            Ok(value[0].clone())
        } else {
            Err(Error::wait_for_timeout())
        }
    }
// Executes GraphQL query, waits for result and returns recieved value
Executes GraphQL query, waits for result and returns recieved value
Executes GraphQL query waits for result and returns recieved value
pub async fn wait_for(
        &self,
        table: &str,
        filter: &Value,
        fields: &str,
        timeout: Option<u32>,
    ) -> ClientResult<Value> {
        let value = self
            .query(
                table,
                filter,
                fields,
                None,
                None,
                timeout.or(Some(self.config.wait_for_timeout)),
            )
            .await?;
        if !value[0].is_null() {
            Ok(value[0].clone())
        } else {
            Err(Error::wait_for_timeout())
        }
    }
pub async fn wait_for ( & self , table : & str , filter : & Value , fields : & str , timeout : Option < u32 > , ) -> ClientResult < Value > { let value = self . query ( table , filter , fields , None , None , timeout . or ( Some ( self . config . wait_for_timeout ) ) , ) . await ? ; if ! value [ 0 ] . is_null ( ) { Ok ( value [ 0 ] . clone ( ) ) } else { Err ( Error :: wait_for_timeout ( ) ) } }
Executes GraphQL query, waits for result and returns recieved value
Executes GraphQL query waits for result and returns recieved value
&self
table
&str
filter
&Value
fields
&str
timeout
Option<u32>