How divad1196/odoo_graphql works
Main Components Identification
a) Core GraphQL Layer:
• GraphQL Controller (/controllers/graphql.py)
• GraphQL Resolver (graphql_resolver.py)
• Type Definitions (/graphql_definitions/)
• Introspection Handler (introspection.py)
b) Odoo Integration Layer:
• Model Handlers (/models/graphql_handler.py)
• Field Arguments (/graphql_definitions/field_args.py)
• Basic Types (/graphql_definitions/basic_types.py)
c) Client Interfaces:
• GraphiQL Interface (/templates/graphiql.xml)
• Frontend JavaScript Library (/static/js/odoo_graphql.js)
• External Client Libraries (/examples/libs/)
[Client Layer]
• ↓ ↑
[GraphQL API Layer]
• ↓ ↑
[Odoo Integration Layer]
• ↓ ↑
[Odoo Core]
Component Relationships
a) External Flow:
• Client requests → GraphQL Controller
• GraphQL Controller → GraphQL Resolver
• Resolver → Odoo Models
• Response path back through the same layers
b) Internal Flow:
• Type Definitions ← → Resolver
• Model Handler ← → Odoo ORM
• Introspection System ← → GraphQL Schema
Additional Details
Annotations for:
• System parameters configuration
• GraphiQL editor endpoint
• External website integration points
• Authentication flow