Skip to content

Commit 1f7b191

Browse files
committed
docs: Update Entity docstring
1 parent 746266d commit 1f7b191

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

.changeset/stupid-sloths-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@data-client/endpoint': patch
3+
---
4+
5+
Update Entity docstring

packages/endpoint/src/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export { default as All } from './schemas/All.js';
66
export { default as Object } from './schemas/Object.js';
77
export { default as Invalidate } from './schemas/Invalidate.js';
88
export { default as Collection } from './schemas/Collection.js';
9-
export { default as Entity } from './schemas/EntitySchema.js';
9+
export { default as Entity } from './schemas/EntityMixin.js';
1010
export { default as Query } from './schemas/Query.js';

packages/endpoint/src/schemas/Entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const EmptyBase = class {} as any as abstract new (...args: any[]) => {
1010
};
1111

1212
/**
13-
* Represents data that should be deduped by specifying a primary key.
13+
* Entity defines a single (globally) unique object.
1414
* @see https://dataclient.io/rest/api/Entity
1515
*/
1616
export default abstract class Entity extends EntityMixin(EmptyBase) {

packages/endpoint/src/schemas/EntitySchema.ts renamed to packages/endpoint/src/schemas/EntityMixin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import type {
99
import { AbstractInstanceType } from '../normal.js';
1010

1111
/**
12-
* Represents data that should be deduped by specifying a primary key.
12+
* Entity defines a single (globally) unique object.
1313
* @see https://dataclient.io/rest/api/schema.Entity
1414
*/
1515
export default function EntityMixin<TBase extends Constructor>(
1616
Base: TBase,
1717
options: EntityOptions<InstanceType<TBase>> = {},
1818
) {
1919
/**
20-
* Represents data that should be deduped by specifying a primary key.
20+
* Entity defines a single (globally) unique object.
2121
* @see https://dataclient.io/rest/api/Entity
2222
*/
2323
abstract class EntityMixin extends Base {

website/src/components/Playground/editor-types/@data-client/endpoint.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
11061106
pk(parent?: any, key?: string, args?: readonly any[]): string | number | undefined;
11071107
});
11081108
/**
1109-
* Represents data that should be deduped by specifying a primary key.
1109+
* Entity defines a single (globally) unique object.
11101110
* @see https://dataclient.io/rest/api/Entity
11111111
*/
11121112
declare abstract class Entity extends Entity_base {

website/src/components/Playground/editor-types/@data-client/graphql.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
11061106
pk(parent?: any, key?: string, args?: readonly any[]): string | number | undefined;
11071107
});
11081108
/**
1109-
* Represents data that should be deduped by specifying a primary key.
1109+
* Entity defines a single (globally) unique object.
11101110
* @see https://dataclient.io/rest/api/Entity
11111111
*/
11121112
declare abstract class Entity extends Entity_base {

website/src/components/Playground/editor-types/@data-client/rest.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
11041104
pk(parent?: any, key?: string, args?: readonly any[]): string | number | undefined;
11051105
});
11061106
/**
1107-
* Represents data that should be deduped by specifying a primary key.
1107+
* Entity defines a single (globally) unique object.
11081108
* @see https://dataclient.io/rest/api/Entity
11091109
*/
11101110
declare abstract class Entity extends Entity_base {

website/src/components/Playground/editor-types/globals.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ declare const Entity_base: IEntityClass<abstract new (...args: any[]) => {
11081108
pk(parent?: any, key?: string, args?: readonly any[]): string | number | undefined;
11091109
});
11101110
/**
1111-
* Represents data that should be deduped by specifying a primary key.
1111+
* Entity defines a single (globally) unique object.
11121112
* @see https://dataclient.io/rest/api/Entity
11131113
*/
11141114
declare abstract class Entity extends Entity_base {

0 commit comments

Comments
 (0)