mutation CreateAssay(
    $name: String
    $pipeline_id: bigint
    $pipeline_name: String
    $active: Boolean,
    $status: String,
    $iopath: String,
    $alert_threshold: Float,
    $warning_threshold: Float,
    $baseline: jsonb,
    $window: jsonb,
    $summarizer: jsonb,
    $next_run: timestamptz,
    $run_until: timestamptz,
) {
    insert_assay(
        objects: {
            name: $name,
            pipeline_id: $pipeline_id,
            pipeline_name: $pipeline_name,
            active: $active,
            status: $status,
            iopath: $iopath,
            alert_threshold: $alert_threshold,
            warning_threshold: $warning_threshold,
            baseline: $baseline,
            window: $window,
            summarizer: $summarizer
            next_run: $next_run,
            run_until: $run_until,
        }
    ) {
        returning {
            id,
        }
    }
}