SelectoMix.DomainGenerator (selecto_mix v0.4.2)

Generates Selecto domain configuration files from schema introspection data.

This module creates complete, functional Selecto domain files that users can immediately use in their applications. The generated files include helpful comments, customization markers, and suggested configurations.

Summary

Functions

Resolve the generated domain module name for a source/config pair.

Generate a complete Selecto domain file.

Generate the core domain configuration map.

Functions

domain_module_name(source, config, opts \\ [])

Resolve the generated domain module name for a source/config pair.

generate_domain_file(schema_module, config, opts \\ [])

Generate a complete Selecto domain file.

Creates a comprehensive domain configuration file with:

  • Schema-based field and type definitions
  • Association configurations for joins
  • Suggested default selections and filters
  • Customization markers for user modifications
  • Documentation and usage examples

generate_domain_map(config)

Generate the core domain configuration map.