Skip to content

GFQL/Cypher: expose validate-only API (compile/bind checks without execution) #1320

Closed

Description

@lmeyerov

Summary

Expose an API to validate Cypher/GFQL queries without executing them, so clients can run parser+binder+static-schema checks as a preflight step.

Why

Current validation exists in compile/binder lanes (e.g., #1302) but is not surfaced as a first-class user API for "check-only" workflows (IDE/lint/CI/pre-submit).

Scope

In scope:

  • Add a public validate-only entrypoint (name TBD, e.g. g.validate_cypher(...))
  • Run parse/lower/bind/schema-validation pipeline without dispatching runtime execution
  • Return structured diagnostics (errors/warnings, stage, span/alias/property context)
  • Support strict/permissive behavior aligned with native-types rollout controls

Out of scope:

  • Query execution or result materialization
  • New language features beyond existing parser/compiler support

Acceptance

  1. Validate-only API returns success/failure + structured diagnostics and never executes query operators.
  2. Strict-mode failures match binder/schema checks from GFQL native types T2: binder-time schema validation in strict mode #1302 lane behavior.
  3. Tests prove no side effects / no runtime execution in validate-only mode.
  4. Docs include examples for local/CI usage.

Related

Activity

  1. self-assigned this
    on May 6, 2026
  2. lmeyerov commented on May 6, 2026

    @lmeyerov
    ContributorAuthor

    Landed via #1321 (merge commit cd1f3c8). Closing as complete.

  3. added 2 commits that reference this issue on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions