strawberry.starlite.make_graphql_controller

Signature:

def make_graphql_controller(
schema: BaseSchema,
path: str = '',
graphiql: bool | None = None,
graphql_ide: GraphQL_IDE | None = 'graphiql',
allow_queries_via_get: bool = True,
keep_alive: bool = False,
keep_alive_interval: float = 1,
debug: bool = False,
root_value_getter: AnyCallable | None = None,
context_getter: AnyCallable | None = None,
subscription_protocols: Tuple[str, ...] = (GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL),
connection_init_wait_timeout: timedelta = timedelta(ExprKeyword),
) -> Type[Controller]:
...

Parameters:

  1. schema:

    Type
    BaseSchema
  2. path:

    Type
    str
    Default
    ''
  3. graphiql:

    Type
    bool | None
    Default
    None
  4. graphql_ide:

    Type
    GraphQL_IDE | None
    Default
    'graphiql'
  5. allow_queries_via_get:

    Type
    bool
    Default
    True
  6. keep_alive:

    Type
    bool
    Default
    False
  7. keep_alive_interval:

    Type
    float
    Default
    1
  8. debug:

    Type
    bool
    Default
    False
  9. root_value_getter:

    Type
    AnyCallable | None
    Default
    None
  10. context_getter:

    Type
    AnyCallable | None
    Default
    None
  11. subscription_protocols:

    Type
    Tuple[str, ...]
    Default
    (GRAPHQL_TRANSPORT_WS_PROTOCOL, GRAPHQL_WS_PROTOCOL)
  12. connection_init_wait_timeout:

    Type
    timedelta
    Default
    timedelta(ExprKeyword)