diff --git a/packages/active-record/src/-private/builders/save-record.ts b/packages/active-record/src/-private/builders/save-record.ts index dd8e60c8cb8..8baeecf5199 100644 --- a/packages/active-record/src/-private/builders/save-record.ts +++ b/packages/active-record/src/-private/builders/save-record.ts @@ -33,7 +33,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/active-record/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -59,7 +59,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/active-record/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -114,7 +114,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/active-record/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const data = await store.request(createRecord(person)); * ``` * @@ -135,7 +135,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/active-record/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const options = createRecord(person, { namespace: 'api/v1' }); * const data = await store.request(options); * ``` @@ -184,7 +184,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/active-record/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const data = await store.request(updateRecord(person)); * ``` @@ -207,7 +207,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/active-record/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const options = updateRecord(person, { patch: true }); * const data = await store.request(options); diff --git a/packages/json-api/src/-private/builders/save-record.ts b/packages/json-api/src/-private/builders/save-record.ts index 29f98740b2e..2d849702eab 100644 --- a/packages/json-api/src/-private/builders/save-record.ts +++ b/packages/json-api/src/-private/builders/save-record.ts @@ -32,7 +32,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/json-api/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -58,7 +58,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/json-api/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -113,7 +113,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/json-api/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const data = await store.request(createRecord(person)); * ``` * @@ -134,7 +134,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/json-api/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const options = createRecord(person, { namespace: 'api/v1' }); * const data = await store.request(options); * ``` @@ -183,7 +183,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/json-api/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const data = await store.request(updateRecord(person)); * ``` @@ -206,7 +206,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/json-api/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const options = updateRecord(person, { patch: true }); * const data = await store.request(options); diff --git a/packages/rest/src/-private/builders/save-record.ts b/packages/rest/src/-private/builders/save-record.ts index 8a27e051c77..4fb075a903b 100644 --- a/packages/rest/src/-private/builders/save-record.ts +++ b/packages/rest/src/-private/builders/save-record.ts @@ -33,7 +33,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/rest/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -59,7 +59,7 @@ function isExisting(identifier: StableRecordIdentifier): identifier is StableExi * ```ts * import { deleteRecord } from '@ember-data/rest/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * * // mark record as deleted * store.deleteRecord(person); @@ -114,7 +114,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/rest/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const data = await store.request(createRecord(person)); * ``` * @@ -135,7 +135,7 @@ export function deleteRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { createRecord } from '@ember-data/rest/request'; * - * const person = this.store.createRecord('person', { name: 'Ted' }); + * const person = store.createRecord('person', { name: 'Ted' }); * const options = createRecord(person, { namespace: 'api/v1' }); * const data = await store.request(options); * ``` @@ -184,7 +184,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/rest/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const data = await store.request(updateRecord(person)); * ``` @@ -207,7 +207,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions * ```ts * import { updateRecord } from '@ember-data/rest/request'; * - * const person = this.store.peekRecord('person', '1'); + * const person = store.peekRecord('person', '1'); * person.name = 'Chris'; * const options = updateRecord(person, { patch: true }); * const data = await store.request(options);