graphql

steveb8n 2020-06-17T00:58:11.186300Z

since I always have an “id” field in my queries, here’s what seems to work using the selection api

steveb8n 2020-06-17T00:58:14.186500Z

(some->> (executor/selections-tree context)
         (select-first [MAP-KEYS #(= "id" (name %))])
         namespace
         keyword)

steveb8n 2020-06-17T00:58:48.186700Z

that’s specter in the second step so not material to this question

steveb8n 2020-06-17T00:59:17.186900Z

just wondering if there’s a more direct way to do this but I’m happy to move forward with this solution