ChuckJonas / ts-force

A Salesforce REST Client written in Typescript for Typescript
88 stars 21 forks source link

Other SOQL operations like count? #35

Closed beeekind closed 7 years ago

beeekind commented 7 years ago

Is it possible to do other operations like count() using this library?

ChuckJonas commented 7 years ago

Sure, you can run any SOQL query and get the results like this:

import { Rest } from "ts-force";

const sfdcClient = Rest.Instance;
let results = await sfdcClient.query('SELECT Count(Id) FROM Account');
console.log(results);
beeekind commented 7 years ago

Awesome! Thank's so much. Great library.

ChuckJonas commented 7 years ago

@b3ntly thanks! I think it has a TON of potential. It's still very much in it's infancy, but I've been using it in a client project for the past 6 months and I've actually been pleasantly surprised with how stable it's been.

I have a lot of 2.0 features & refactors I want to add if I ever find the time.