Skip to content

Commit

Permalink
update upsert docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Dec 10, 2024
1 parent d2b8851 commit d9bb89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/salesforce/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
"records"
],
"docs": {
"description": "Create a new sObject record, or updates it if it already exists\nExternal ID field name must be specified in second argument.",
"description": "Create a new sObject record, or updates it if it already exists.\nThis function uses {@link https://jsforce.github.io/document/#upsert|jsforce upsert} under the hood.",
"tags": [
{
"title": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/salesforce/src/Adaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ export function query(query, options = {}) {
}

/**
* Create a new sObject record, or updates it if it already exists
* External ID field name must be specified in second argument.
* Create a new sObject record, or updates it if it already exists.
* This function uses {@link https://jsforce.github.io/document/#upsert|jsforce upsert} under the hood.
* @public
* @example <caption> Single record upsert </caption>
* upsert("UpsertTable__c", "ExtId__c", { Name: "Record #1", ExtId__c : 'ID-0000001' });
Expand Down

0 comments on commit d9bb89c

Please sign in to comment.