stevebuik / Graphvizforce-Lightning

Automatic Entity-Relationship diagrams and SOQL queries for Salesforce
The Unlicense
31 stars 3 forks source link

automatically choose the from entity to maximise reach of SOQL query #48

Open stevebuik opened 6 years ago

stevebuik commented 6 years ago

when a developer want to maximise the entities that are returned by a SOQL they need to try various from entities to see which includes the most entities.

When extracting the from options from the persisted JSON, the "entities" pure fn could return objects instead of strings. Those objects can contain the "from" entity name and also a label with (n) appended. N would be the count of entities included when that entity is used as the from for a SOQL query.

This makes it easy for the user to know which entity has the greatest reach without needing any new UI components i.e. keeping UI clean