/// Return true if the deployment with the given id is fully synced,
/// and return false otherwise. Errors from the store are passed back up
Return true if the deployment with the given id is fully synced,
and return false otherwise. Errors from the store are passed back up
Return true if the deployment with the given id is fully synced and return false otherwise . Errors from the store are passed back up
fn is_deployment_synced(&self, id: SubgraphDeploymentId) -> Result<bool, Error> {
        let entity = self.get(SubgraphDeploymentEntity::key(id))?;
        entity
            .map(|entity| match entity.get("synced") {
                Some(Value::Bool(true)) => Ok(true),
                _ => Ok(false),
            })
            .unwrap_or(Ok(false))
    }
fn is_deployment_synced ( & self , id : SubgraphDeploymentId ) -> Result < bool , Error > { let entity = self . get ( SubgraphDeploymentEntity :: key ( id ) ) ? ; entity . map ( | entity | match entity . get ( " " ) { Some ( Value :: Bool ( true ) ) => Ok ( true ) , _ => Ok ( false ) , } ) . unwrap_or ( Ok ( false ) ) }
Return true if the deployment with the given id is fully synced,
and return false otherwise.
Return true if the deployment with the given id is fully synced and return false otherwise .
&self
id
SubgraphDeploymentId