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, (SELECT Id, Name FROM Contacts) FROM Account`
1201
+
query: `SELECT Id, Name, (SELECT Id, Name FROM Contacts)
1202
+
FROM Account
1203
+
WITH USER_MODE`
1168
1204
},
1169
1205
{
1170
1206
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))`
1207
+
query: `SELECT Id
1208
+
FROM Account
1209
+
WHERE Industry = 'IT'
1210
+
AND ((Name = 'My Account' AND NumberOfEmployees >= 10)
1211
+
OR (Name = 'My Account 2' AND NumberOfEmployees <= 20))
1212
+
WITH USER_MODE`
1172
1213
},
1173
1214
{
1174
1215
name: "LIKE Patterns",
1175
-
query: `SELECT Id, Name FROM Account WHERE Name LIKE 'Test%' AND BillingCity LIKE '%Francisco%'`
1216
+
query: `SELECT Id, Name
1217
+
FROM Account
1218
+
WHERE Name LIKE 'Test%'
1219
+
AND BillingCity LIKE '%Francisco%'
1220
+
WITH USER_MODE`
1176
1221
},
1177
1222
{
1178
1223
name: "IN Operator",
1179
-
query: `SELECT Id, Name FROM Account WHERE Industry IN ('Technology', 'Healthcare', 'Finance')`
1224
+
query: `SELECT Id, Name
1225
+
FROM Account
1226
+
WHERE Industry IN ('Technology', 'Healthcare', 'Finance')
1227
+
WITH USER_MODE`
1180
1228
},
1181
1229
{
1182
1230
name: "ORDER BY Multiple",
1183
-
query: `SELECT Id, Name, Industry FROM Account ORDER BY Name DESC, Industry ASC LIMIT 50`
1231
+
query: `SELECT Id, Name, Industry
1232
+
FROM Account
1233
+
ORDER BY Name DESC, Industry ASC
1234
+
LIMIT 50
1235
+
WITH USER_MODE`
1184
1236
},
1185
1237
{
1186
1238
name: "Complex Query",
1187
-
query: `SELECT Id, Name FROM Account WHERE (Industry = 'Technology' OR Industry = 'Healthcare') AND NumberOfEmployees > 100 ORDER BY Name LIMIT 20`
1239
+
query: `SELECT Id, Name
1240
+
FROM Account
1241
+
WHERE (Industry = 'Technology' OR Industry = 'Healthcare')
1242
+
AND NumberOfEmployees > 100
1243
+
ORDER BY Name
1244
+
LIMIT 20
1245
+
WITH USER_MODE`
1188
1246
},
1189
1247
{
1190
1248
name: "Boolean Fields",
1191
-
query: `SELECT Id, Name FROM Account WHERE IsDeleted = false AND IsPersonAccount = true`
1249
+
query: `SELECT Id, Name
1250
+
FROM Account
1251
+
WHERE IsDeleted = false
1252
+
AND IsPersonAccount = true
1253
+
WITH USER_MODE`
1192
1254
},
1193
1255
{
1194
1256
name: "NULL Checks",
1195
-
query: `SELECT Id, Name FROM Account WHERE ParentId != null AND BillingCity = null`
<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>
1375
+
<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>
1376
+
<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>
1377
+
<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>
1378
+
<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>
1379
+
<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