0.1.0 • Published 4 years ago

salesforce-queries v0.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

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