8000 [minigraf] parse_error: Universal query [:find ?e ?a ?v] returns empty res · Issue #106 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

[minigraf] parse_error: Universal query [:find ?e ?a ?v] returns empty res #106

Closed

Description

@adityamukho

Description: Universal query [:find ?e ?a ?v] returns empty results despite data existing

Datalog:

[:find ?e ?a ?v]

Error:

Returns empty results but specific attribute queries work

Activity

  1. adityamukho commented on Apr 6, 2026

    @adityamukho
    CollaboratorAuthor

    This is by design, not a bug.

    Datalog queries require a :where clause to specify what data to retrieve. A query like :find ?e ?a ?v without :where has no binding mechanism — there's no way to know what data to return.

    The error message has been improved to be more helpful:

    query has no :where clause, rules, or aggregates — nothing binds the variables.
    Add a :where clause (e.g., [:find ?e ?a ?v :where [?e ?a ?v]]) or use an aggregate.
    

    If you want all facts, you can use the Rust API: db.get_all_facts()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0