Skip to content

Commit b938924

Browse files
committed
Fixed: examples in VingSchema need to differentiate between the able and the kind class plainblack#155
1 parent b2859da commit b938924

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: ving/docs/change-log.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ outline: deep
55

66
## June 2024
77

8+
### 2024-06-23
9+
* Fixed: examples in VingSchema need to differentiate between the able and the kind class #155
10+
811
### 2024-06-21
912
* Replaced PrimeFlex with Tailwind.
1013
* Replaced PrimeVue 3 with PrimeVue 4.

Diff for: ving/record/VingRecord.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ export class VingKind {
690690
* @param {Object} where A drizzle where clause
691691
* @returns {object} A drizzle where clause
692692
* @example
693-
* const results = await Users.delete.where(Users.calcWhere(like(Users.realName, 'Fred%')));
693+
* const results = await Users.delete.where(Users.calcWhere(like(Users.table.realName, 'Fred%')));
694694
*/
695695
calcWhere(where) {
696696
let defaults = undefined;
@@ -954,7 +954,7 @@ export class VingKind {
954954
* @param {Object[]} options.orderBy An array of drizzle table fields to sort by with `asc()` or `desc()` function wrappers
955955
* @returns {VingRecord[]} A list of records
956956
* @example
957-
* const listOfFredRecords = await Users.findMany(like(Users.realName, 'Fred%'));
957+
* const listOfFredRecords = await Users.findMany(like(Users.table.realName, 'Fred%'));
958958
*/
959959
async findMany(
960960
where,
@@ -981,7 +981,7 @@ export class VingKind {
981981
* @param {Object[]} options.orderBy An array of drizzle table fields to sort by with `asc()` or `desc()` function wrappers
982982
* @returns {Iterator<VingRecord>} An iterator that points to a list of records
983983
* @example
984-
* const fredRecords = await Users.findAll(like(Users.realName, 'Fred%'));
984+
* const fredRecords = await Users.findAll(like(Users.table.realName, 'Fred%'));
985985
* for await (const fred of fredRecords) {
986986
* // do stuff with each record
987987
* }
@@ -1010,7 +1010,7 @@ export class VingKind {
10101010
* @param {Object} where A drizzle where clause
10111011
* @returns {VingRecord|undefined} a record or `undefined` if no record is found
10121012
* @example
1013-
* const fredRecord = await Users.findOne(eq(Users.username, 'Fred'));
1013+
* const fredRecord = await Users.findOne(eq(Users.table.username, 'Fred'));
10141014
*/
10151015
async findOne(where) {
10161016
const result = await this.findMany(where, { limit: 1 });

0 commit comments

Comments
 (0)