supabase_rs 0.7.0

Lightweight Rust client for Supabase REST and GraphQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;

use crate::graphql::parse::parse_outer;
use crate::graphql::Query;

// FIX ME: This is a temporary fix to suppress the warning
impl Query {
    /// # Verify the query
    ///
    /// This method verifies the query to ensure it is in the correct format.
    ///
    ///
    pub async fn verify(&self) -> Result<bool> {
        Ok(parse_outer(&self.query))
    }
}