pub async fn run(schema: &str, port: u16) -> Result<()>Expand description
Run the serve command (development server with hot-reload)
§Arguments
schema- Path to schema.json file to watchport- Port to listen on (for future GraphQL server integration)
§Behavior
- Compiles the initial schema
- Watches schema.json for file changes
- Auto-recompiles on save
- Provides compilation feedback
§Errors
Returns an error if the schema file does not exist, if the file watcher cannot be created or started, or if the watch channel closes unexpectedly.
§Future Enhancement
Will integrate with fraiseql-server to provide hot-reload of the GraphQL endpoint