Skip to main content

Main Documentation

In this section you will find most of the documentation for the external APIs, functionalities, examples, utilities and integrations. However, you may also find useful the documentation, code and tests of the external and internal APIs for each package on the sidebar. These include packages for execution (leto), schema creation (leto_schema), code generation (leto_generator) and shelf web server integration (leto_shelf).

📄️ Resolvers

GraphQL resolvers execute the logic for each field and return the expected value typed according to the schema. In Dart this are functions that receive the parent's object value and the field's Ctx, and return the execution result. Simple fields may only return a property of the parent object value. However, there may also be complex resolvers, such as mutations, that validate the input data and create rows in a database, or queries that retrieve multiple rows according to complex authorization logic.