salesforce-queries
v0.1.0
Published
A JavaScript SOQL/SOSL Query Builder for the Salesforce Platform, written in TypeScript
Downloads
25
Readme
Installation
$ yarn add salesforce-queries
Example
import { SOQL } from 'salesforce-queries';
const query = new SOQL('Account')
.select(['Id', 'Name', 'BillingCountry'])
.where('Id', '=', '001E000001KnMkTIAV')
.limit(10)
.build();
console.log(query);
// SELECT Id, Name, BillingCountry FROM Account WHERE Id = '001E000001KnMkTIAV' LIMIT 10
console.log(new SOQL('Account').build());
// SELECT Id FROM Account