/salesforce-queries

A JavaScript SOQL/SOSL Query Builder for the Force.com Platform ☁️

Primary LanguageTypeScriptMIT LicenseMIT

salesforce-queries

Build Status Coverage Status npm version Tested with Jest License: MIT

salesforce-queries - A Javascript SOQL/SOSL Query Builder for the Force.com Platform

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

References


Looking for new opportunities? Have a look at Mavens website!
👩🏻‍⚕️👨🏾‍⚕️