Is it possible to implement SOQL against Tooling API

Issue #2011 duplicate
M G created an issue

Is it possible to implement SOQL against Tooling API.
Something similar like in Developer Console when you check checkbox and it runs against Tooling api.

Comments (4)

  1. Scott Wells repo owner

    Please see #373 for more information. I actually have a shelved changelist right now with a partial solution for this. The big challenge is proper code completion as the Tooling API SObjects are not included in the generated offline symbol table, nor should they be unless you're executing a query against the Tooling API; otherwise you'd have ambiguity between objects that exist in both APIs with the same name but different fields. I think I may have a solution for that, though...

  2. M G reporter

    Maybe it is possible to create two modes in soql window and end user choose in which mode to run the query.

  3. Scott Wells repo owner

    Yes, that has to happen regardless...there has to be some way to say which API should be used to issue the query. And issuing the query against the other API is the easy part. The part that's more complicated is providing code completions, validation, etc., against the Tooling API SObjects which are not the same as the Metadata API SObjects, though some have the same names but often different fields. I have two thoughts on how that would work and just need to implement one of them. Otherwise authoring SOQL queries against the Tooling API would lack all of the nice IDE features that are present for authoring queries against the Metadata API.

  4. Log in to comment