34#ifndef DETERMINISTICESPASYNCWEBSERVER_GRAPHQL_H
35#define DETERMINISTICESPASYNCWEBSERVER_GRAPHQL_H
41#if DETWS_ENABLE_GRAPHQL
44enum class DetwsGqlType : uint8_t
67bool detws_gql_arg_int(
const DetwsGqlArgs *args,
const char *name,
long long *out);
69bool detws_gql_arg_str(
const DetwsGqlArgs *args,
const char *name,
const char **out);
71bool detws_gql_arg_bool(
const DetwsGqlArgs *args,
const char *name,
bool *out);
79typedef bool (*detws_gql_resolver_fn)(
const char *path,
const DetwsGqlArgs *args, DetwsGqlValue *out);
82enum class DetwsGqlResult : int32_t
85 DETWS_GQL_ERR_PARSE = -1,
86 DETWS_GQL_ERR_LIMIT = -2,
87 DETWS_GQL_ERR_OVERFLOW = -3
102DetwsGqlResult detws_graphql_execute(
const char *query,
size_t len, detws_gql_resolver_fn resolver,
char *out,
User-facing configuration for DeterministicESPAsyncWebServer.