Skill 2.4.4

Expose database objects, stored procedures, and views, including GraphQL relationships

Key Concepts

Tables expose full CRUD by default, using their primary key. Views need key fields declared, with the fields array (primary-key: true) in DAB 2.0 or --source.key-fields in the CLI, because a view has no primary key. Stored procedures use source.type: stored-procedure, the execute action and optional parameter defaults and descriptions; only the procedure's first result set is returned, and with MCP they can be registered as named custom tools.

Relationships are configured on an entity with a cardinality of one or many, a target.entity, and optional source.fields and target.fields when no foreign key defines the link. Many-to-many relationships add a linking.object and its source and target fields. The relationship appears as a nested field in GraphQL, such as category { books { items { title } } }; REST does not navigate relationships.