swell/executor
Types
GraphQL Error
pub type GraphQLError {
GraphQLError(message: String, path: List(String))
}
Constructors
-
GraphQLError(message: String, path: List(String))
GraphQL Response
pub type Response {
Response(data: value.Value, errors: List(GraphQLError))
}
Constructors
-
Response(data: value.Value, errors: List(GraphQLError))
Values
pub fn execute(
query: String,
graphql_schema: schema.Schema,
ctx: schema.Context,
) -> Result(Response, String)
Execute a GraphQL query