devoyage-subgraph 0.0.15

Subgraph is a CLI that instantly generates a GraphQL API around Mongo, SQL, and HTTP APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use http::Method;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct MethodOption {
    #[serde(with = "http_serde::method")]
    pub method: Method,
}

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct CorsConfigOptions {
    pub allow_methods: Option<Vec<MethodOption>>,
    pub allow_headers: Option<Vec<String>>,
    pub allow_origins: Option<Vec<String>>,
    pub allow_any_origin: Option<bool>,
}