Skip to content

src/dazzle_back/graphql/integration.py

Generated: 2026-03-30T04:38:46.329779+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

FastAPI/Strawberry integration for GraphQL BFF layer.

Provides utilities for mounting GraphQL on an existing FastAPI app or creating a standalone GraphQL application.

Key Exports

  • create_graphql_app
  • mount_graphql
  • create_schema
  • print_schema
  • inspect_schema
  • get_context
  • resolve_create
  • resolve_update
  • resolve_delete

Dependencies

Imports

  • __future__.annotations
  • collections.abc.Callable
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle_back.graphql.context.GraphQLContext
  • dazzle_back.graphql.resolver_generator.ResolverGenerator
  • dazzle_back.graphql.schema_generator.SchemaGenerator
  • strawberry
  • strawberry.fastapi.GraphQLRouter
  • fastapi.FastAPI
  • dazzle_back.specs.BackendSpec
  • dazzle_back.graphql.schema_generator.generate_schema_sdl
  • dazzle_back.graphql.resolver_generator._input_to_dict
  • dazzle_back.graphql.resolver_generator._input_to_dict

Event Interactions

None detected.

Invariants and Assumptions

  • Validates: Failed to create {entity_name}: {e}
  • Validates: No repository for {entity_name}
  • Validates: {entity_name} not found
  • Validates: Failed to update {entity_name}: {e}

Tests

  • tests/llm/test_integration.py
  • tests/unit/test_integration_action_buttons.py
  • tests/unit/test_integration_mapping.py
  • tests/unit/test_integration_trigger_redirect.py
  • tests/test_mcp_integration.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.