Skip to content

composeQuery relationship clarification #46

@ChuckJonas

Description

@ChuckJonas
  • Feature
  • Bug Request
  • Question

First off, awesome work. I started to write my own parser using antlr4ts and the grammar posted by Mulesoft and then (THANK GOD) I came across this pkg. Seems like a really complete implementation.

I do however have a question on how the composeQuery() is suppose to work in regards to relationship fields.

On the field interface, I see the relationshipFields: string[] prop, however, it seems to ignore this array and instead just output whatever is in the text property. Is this intended behavior?

Example:

let qryStr = composeQuery({
    "fields":[
        {"text":"Name"},
        {
            "text":"Name",
            "relationshipFields":['Account']
        }
    ],
    "subqueries":[],
    "sObject":"contact"
});

//OUTPUT: "SELECT Name, Name FROM contact"

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions