jetstreamapp / soql-parser-js

Javascript SOQL parser
https://jetstreamapp.github.io/soql-parser-js/
MIT License
77 stars 20 forks source link

Add WITH USER_MODE and WITH SYSTEM_MODE support #193

Closed ghingis closed 2 years ago

ghingis commented 2 years ago

Enforce User Mode for Database Operations (Beta) SOQL SELECT Syntax

With API version 55.0 and later, as part of the User Mode for Database Operations (Beta) feature, use the optional accessLevel parameter to run the query operation in user or system mode. The accessLevel parameter specifies whether the method runs in system mode (AccessLevel.SYSTEM_MODE) or user mode (AccessLevel.USER_MODE). In system mode, the object and field-level permissions of the current user are ignored, and the record sharing rules are controlled by the class sharing keywords. In user mode, the object permissions, field-level security, and sharing rules of the current user are enforced. System mode is the default.

ghingis commented 2 years ago

Wow, thanks, this was fast :)