Skip to main content
Version: 20 R6 BETA


Returns the query as it was passed to 4D Server (e.g., $queryplan=true)


$queryplan returns the query plan as it was passed to 4D Server.

itemStringActual query executed
subqueryArrayIf there is a subquery, an additional object containing an item property (as the one above)

For more information about query plans, refer to queryPlan and queryPath.


If you pass the following query:

GET /rest/People/$filter=" AND lastName=Jones"&$queryplan=true


__queryPlan: {
And: [
item: "Join on Table : Company : People.employer = Company.ID",
subquery: [
item: " = acme"
item: "People.lastName = Jones"