Skip to content

Subqueries do not compose #47

@ChuckJonas

Description

@ChuckJonas
  • Bug Request

I can't seem to get the subqueries to "compose". Tried different combinations of sObject and sObjectRelationshipName but nothing seems to work.

Description

        let x = {
            "fields": [],
            "sObject": "Account",
            "subqueries": [
              {
                "fields": [
                  {
                    "text": "Id"
                  },
                  {
                    "text": "Name"
                  }
                ],
                // "sObject": 'Contacts', //tried with different variations of these two params... nothing works:
                "sObjectRelationshipName": "Contacts",
                "subqueries": []
              }
            ]
        }
        let s = composeQuery(x);

AssertionError: expected 'SELECT FROM Account' to equal 'SELECT (SELECT Id, Name FROM Contacts) FROM Account'
+ expected - actual

  -SELECT  FROM Account
  +SELECT (SELECT Id, Name FROM Contacts) FROM Account

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions