minos.plugins.graphql.handlers

This module contains the implementation of the graphql handler.

Classes

GraphQlHandler

GraphQl Handler

class GraphQlHandler[source]

Bases: object

GraphQl Handler

__init__(schema)[source]
Parameters

schema (GraphQLSchema) –

async execute_operation(request)[source]

Execute incoming request extracting variables and passing to graphql.

Parameters

request (Request) – The request containing the graphql operation.

Returns

A response containing the graphql result.

Return type

Response

async get_schema(request)[source]

Get schema

Parameters

request (Request) – An empty request.

Returns

A Response containing the schema as a string.

Return type

Response