MCPcopy Create free account
hub / github.com/ScalableCapital/scalable-cli / execute_graphql

Function execute_graphql

src/graphql.rs:82–101  ·  view source on GitHub ↗
(
    endpoint: &str,
    token: &str,
    query: &str,
    variables: &T,
    operation_name: Option<&str>,
    access_context: GraphqlAccessContext,
    dpop_options: &DpopRuntimeOptions,
)

Source from the content-addressed store, hash-verified

80pub(crate) const BROKER_TRANSACTION_NOT_FOUND_ERROR_PREFIX: &str = "Broker transaction not found:";
81
82pub fn execute_graphql<T: Serialize>(
83 endpoint: &str,
84 token: &str,
85 query: &str,
86 variables: &T,
87 operation_name: Option<&str>,
88 access_context: GraphqlAccessContext,
89 dpop_options: &DpopRuntimeOptions,
90) -> Result<Value> {
91 execute_graphql_with_headers(
92 endpoint,
93 token,
94 query,
95 variables,
96 operation_name,
97 access_context,
98 &[],
99 dpop_options,
100 )
101}
102
103#[allow(clippy::too_many_arguments)]
104pub fn execute_graphql_with_headers<T: Serialize>(

Calls 1

Tested by

no test coverage detected