Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose remote_table option in Native Queries Relationships UI #10156

Open
cpouldev opened this issue Mar 5, 2024 · 0 comments
Open

Expose remote_table option in Native Queries Relationships UI #10156

cpouldev opened this issue Mar 5, 2024 · 0 comments
Labels
k/enhancement New feature or improve an existing feature

Comments

@cpouldev
Copy link

cpouldev commented Mar 5, 2024

Reading the native queries docs , at the part of relationships with table it shows the ability to map a table to a logical model's column via the remote_table option:

 {
      "type": "pg_track_native_query",
      "args": {
        "arguments": {},
        "array_relationships": [],
        "code": "SELECT * FROM (VALUES (1, 'Logical Models', 1), (2, 'Native Queries', 2), (3, 'Relationships', 3), (4, 'Graph Relationships', 4), (5, 'Permissions', 5)) as t(\"id\", \"title\", \"author_id\")",
        "object_relationships": [
          {
            "name": "author",
            "using": {
              "column_mapping": {
                "author_id": "id"
              },
              "insertion_order": null,
              "remote_table": "authors" <------ HERE
            }
          }
        ],
        "returns": "article",
        "root_field_name": "get_articles",
        "source": "default",
        "type": "query"
      }
}

this option is missing on the UI

image

@cpouldev cpouldev added the k/enhancement New feature or improve an existing feature label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant