This project is meant to accompany the Tython blog post Senseless SOQL
-
Run
sf project deploy start -d force-app/main -o [YourOrgAliasOrUsername]
to bring in all necessary metadata. -
Run
sf org assign permset -n SenselessSOQL -o [YourOrgAliasOrUsername]
to assign the project permission set to your user.
-
Run
sf apex run -f anonApex.apex -o [YourOrgAliasOrUsername] > anonApex.log
to see output from an Anonymous Apex context -
In Salesforce navigate to
SenselessSOQL (LWC)
from the App Launcher to see output from a LWC context -
Note that SOQL returns different values based on context AND applies unidirectional SOQL automagic in the LWC context!