https://github.com/mixmaxhq/escapesoqlandsosl
escape SOQL queries and SOSL searches
https://github.com/mixmaxhq/escapesoqlandsosl
corgi-tag
Last synced: 18 days ago
JSON representation
escape SOQL queries and SOSL searches
- Host: GitHub
- URL: https://github.com/mixmaxhq/escapesoqlandsosl
- Owner: mixmaxhq
- License: mit
- Created: 2017-06-16T18:15:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T18:27:07.000Z (over 1 year ago)
- Last Synced: 2024-10-15T15:42:54.856Z (7 months ago)
- Topics: corgi-tag
- Language: JavaScript
- Homepage: https://www.mixmax.com/careers
- Size: 86.9 KB
- Stars: 5
- Watchers: 26
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# escapeSoqlAndSosl
Escape Salesforce SOQL queries and SOSL searches. Can be used standalone or in conjunction with JSForce.
### Installation
```
> npm install --save-dev escape-soql-and-sosl
```### Usage
```js
const {escapeSOQL, escapeSOSL} = require('escape-soql-and-sosl');
const jsforce = require('jsforce');const conn = ...
const query = `FIND {@${escapeSOSL('pride-feat-dangelo.com')}} IN email FIELDS RETURNING Contact(Id, AccountId WHERE AccountId != null)`;
conn.search(query);
```### License
The [MIT License](LICENSE).