soql-restful-api-query-builder
v1.2.0
Published
Package for SOQL query building operations
Downloads
16
Maintainers
Readme
Salesforce SOQL Restful API Query Builder SDK
const producer = FactoryProducer.getFactory('search');
const searchQuery = producer.getQueryBuilder('SEARCH_QUERY')!;
const query = searchQuery.buildQuery({
type: 'SELECT',
fields: ['Id', 'Name'],
object: 'Opportunity',
filter: {
type: 'AND',
expression: [
{
field: 'StageName',
operator: '=',
value: "'Closed Won'",
},
{
field: 'ExpectedRevenue',
operator: '>=',
value: 50000,
},
],
},
limit: 50,
});
console.info(query);