Skip to content
Snippets Groups Projects
Commit 6af74c32 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

update /api/meta/table/:id/query_metadata to hydrate :target for all of the table :fields.

parent cbd5e688
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
(defendpoint GET "/:id/query_metadata" [id]
(->404 (sel :one Table :id id)
(hydrate :db :fields)))
(hydrate :db [:fields [:target]])))
(defendpoint GET "/:id/fks" [id]
(read-check Table id)
......
......@@ -107,6 +107,7 @@
:id $
:field_type "info"
:position 0
:target nil
:preview_display true
:created_at $
:base_type "TextField"})
......@@ -120,6 +121,7 @@
:id $
:field_type "info"
:position 0
:target nil
:preview_display true
:created_at $
:base_type "BigIntegerField"})]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment