You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query: `SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'`
1140
-
},
1156
+
{
1157
+
name: "Simple Query",
1158
+
query: `SELECT Id, Name FROM Account WHERE Name LIKE '%Test%' WITH USER_MODE`
1159
+
},
1141
1160
{
1142
1161
name: "Multiple Conditions",
1143
-
query: `SELECT Id, Name, Owner.Name FROM Account WHERE Industry = 'Technology' AND BillingCity = 'San Francisco'`
1162
+
query: `SELECT Id, Name, Owner.Name FROM Account WHERE Industry = 'Technology' AND BillingCity = 'San Francisco' WITH USER_MODE`
1144
1163
},
1145
1164
{
1146
1165
name: "OR Conditions",
1147
-
query: `SELECT Id, Name FROM Account WHERE Industry = 'Technology' OR Industry = 'Healthcare'`
1166
+
query: `SELECT Id, Name FROM Account WHERE Industry = 'Technology' OR Industry = 'Healthcare' WITH USER_MODE`
1148
1167
},
1149
1168
{
1150
1169
name: "Parent Fields",
1151
-
query: `SELECT Id, Name, CreatedBy.Id, CreatedBy.Name, Parent.Id, Parent.Name FROM Account`
1152
-
},
1153
-
{
1154
-
name: "Aggregate Query",
1155
-
query: `SELECT Industry, COUNT(Id) total FROM Account GROUP BY Industry HAVING COUNT(Id) > 5`
1170
+
query: `SELECT Id, Name, CreatedBy.Id, CreatedBy.Name, Parent.Id, Parent.Name FROM Account WITH USER_MODE`
1156
1171
},
1157
1172
{
1158
1173
name: "COUNT & SUM",
1159
-
query: `SELECT CampaignId, COUNT(Id) totalRecords, SUM(Amount) totalAmount FROM Opportunity GROUP BY CampaignId`
1174
+
query: `SELECT CampaignId, COUNT(Id) totalRecords, SUM(Amount) totalAmount FROM Opportunity GROUP BY CampaignId WITH USER_MODE`
1160
1175
},
1161
1176
{
1162
1177
name: "AVG & MIN",
1163
-
query: `SELECT Industry, AVG(AnnualRevenue) avgRevenue, MIN(NumberOfEmployees) minEmployees FROM Account GROUP BY Industry`
1178
+
query: `SELECT Industry, AVG(AnnualRevenue) avgRevenue, MIN(NumberOfEmployees) minEmployees FROM Account GROUP BY Industry WITH USER_MODE`
1164
1179
},
1165
1180
{
1166
1181
name: "SubQuery",
1167
-
query: `SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account`
1182
+
query: `SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WITH USER_MODE`
1168
1183
},
1169
1184
{
1170
1185
name: "Complex WHERE",
1171
-
query: `SELECT Id FROM Account WHERE Industry = 'IT' AND ((Name = 'My Account' AND NumberOfEmployees >= 10) OR (Name = 'My Account 2' AND NumberOfEmployees <= 20))`
1186
+
query: `SELECT Id FROM Account WHERE Industry = 'IT' AND ((Name = 'My Account' AND NumberOfEmployees >= 10) OR (Name = 'My Account 2' AND NumberOfEmployees <= 20)) WITH USER_MODE`
1172
1187
},
1173
1188
{
1174
1189
name: "LIKE Patterns",
1175
-
query: `SELECT Id, Name FROM Account WHERE Name LIKE 'Test%' AND BillingCity LIKE '%Francisco%'`
1190
+
query: `SELECT Id, Name FROM Account WHERE Name LIKE 'Test%' AND BillingCity LIKE '%Francisco%' WITH USER_MODE`
1176
1191
},
1177
1192
{
1178
1193
name: "IN Operator",
1179
-
query: `SELECT Id, Name FROM Account WHERE Industry IN ('Technology', 'Healthcare', 'Finance')`
1194
+
query: `SELECT Id, Name FROM Account WHERE Industry IN ('Technology', 'Healthcare', 'Finance') WITH USER_MODE`
1180
1195
},
1181
1196
{
1182
1197
name: "ORDER BY Multiple",
1183
-
query: `SELECT Id, Name, Industry FROM Account ORDER BY Name DESC, Industry ASC LIMIT 50`
1198
+
query: `SELECT Id, Name, Industry FROM Account ORDER BY Name DESC, Industry ASC LIMIT 50 WITH USER_MODE`
1184
1199
},
1185
1200
{
1186
1201
name: "Complex Query",
1187
-
query: `SELECT Id, Name FROM Account WHERE (Industry = 'Technology' OR Industry = 'Healthcare') AND NumberOfEmployees > 100 ORDER BY Name LIMIT 20`
1202
+
query: `SELECT Id, Name FROM Account WHERE (Industry = 'Technology' OR Industry = 'Healthcare') AND NumberOfEmployees > 100 ORDER BY Name LIMIT 20 WITH USER_MODE`
1188
1203
},
1189
1204
{
1190
1205
name: "Boolean Fields",
1191
-
query: `SELECT Id, Name FROM Account WHERE IsDeleted = false AND IsPersonAccount = true`
1206
+
query: `SELECT Id, Name FROM Account WHERE IsDeleted = false AND IsPersonAccount = true WITH USER_MODE`
1192
1207
},
1193
1208
{
1194
1209
name: "NULL Checks",
1195
-
query: `SELECT Id, Name FROM Account WHERE ParentId != null AND BillingCity = null`
1210
+
query: `SELECT Id, Name FROM Account WHERE ParentId != null AND BillingCity = null WITH USER_MODE`
1211
+
},
1212
+
{
1213
+
name: "System Mode",
1214
+
query: `SELECT Id, Name, CreatedBy.Id, CreatedBy.Name, Parent.Id, Parent.Name FROM Account WITH SYSTEM_MODE`
<li><strong>WHERE Conditions:</strong> Parses conditions into <code>SOQL.Filter</code> and <code>SOQL.FilterGroup</code> - <ahref="/soql/api/soql-filter"className="text-blue-600 hover:text-blue-800 underline">Filter API</a> | <ahref="/soql/api/soql-filters-group"className="text-blue-600 hover:text-blue-800 underline">FilterGroup API</a></li>
1322
+
<li><strong>Filter Operations:</strong> Maps SOQL operators to methods like <code>.equal()</code>, <code>.contains()</code>, <code>.greaterThan()</code> - <ahref="/soql/api/soql-filter#comparators"className="text-blue-600 hover:text-blue-800 underline">API docs</a></li>
1323
+
<li><strong>Logic Operators:</strong> AND conditions are grouped, OR uses <code>.anyConditionMatching()</code> - <ahref="/soql/api/soql-filters-group#anyconditionmatching"className="text-blue-600 hover:text-blue-800 underline">API docs</a></li>
1324
+
<li><strong>Aggregate Functions:</strong> Maps to specific methods like <code>.count()</code>, <code>.sum()</code> - <ahref="/soql/api/soql#aggregate-functions"className="text-blue-600 hover:text-blue-800 underline">API docs</a></li>
1325
+
<li><strong>ORDER BY:</strong> Translates to <code>.orderBy()</code> with direction methods - <ahref="/soql/api/soql#order-by"className="text-blue-600 hover:text-blue-800 underline">API docs</a></li>
1326
+
<li><strong>LIMIT/OFFSET:</strong> Converts to <code>.setLimit()</code> and <code>.offset()</code> - <ahref="/soql/api/soql#limit"className="text-blue-600 hover:text-blue-800 underline">LIMIT</a> | <ahref="/soql/api/soql#offset"className="text-blue-600 hover:text-blue-800 underline">OFFSET</a></li>
0 commit comments