Skip to content

Commit 4e29d1a

Browse files
committed
chore: fix sort and where example typos
1 parent 5186f52 commit 4e29d1a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ resource.list('Patient').where('name', ['John', 'Steve']);
140140
Also, method where support prefixes for numbers and date, just pass it as third parameter
141141

142142
```typescript
143-
resource.list('Patient').where('birthDate', '2014-06-30', 'gt');
143+
resource.list('Patient').where('birthdate', '2014-06-30', 'gt');
144144
```
145145

146146
#### Sort
@@ -150,13 +150,13 @@ Method sort add additional parameters for sorting
150150
For example, you want to display the oldest patients
151151

152152
```typescript
153-
resource.list('Patient').sort('birthDate', 'acs');
153+
resource.list('Patient').sort('birthdate', 'asc');
154154
```
155155

156156
And also, you want to sort this data by patients name
157157

158158
```typescript
159-
resource.list('Patient').sort('birthDate', 'acs').sort('name', 'acs');
159+
resource.list('Patient').sort('birthdate', 'asc').sort('name', 'asc');
160160
```
161161

162162
#### Count

vendor/r4/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ resource.list('Patient').where('name', ['John', 'Steve']);
6767
Also, method where support prefixes for numbers and date, just pass it as third parameter
6868

6969
```typescript
70-
resource.list('Patient').where('birthDate', '2014-06-30', 'gt');
70+
resource.list('Patient').where('birthdate', '2014-06-30', 'gt');
7171
```
7272

7373
#### Sort
@@ -77,13 +77,13 @@ Method sort add additional parameters for sorting
7777
For example, you want to display the oldest patients
7878

7979
```typescript
80-
resource.list('Patient').sort('birthDate', 'acs');
80+
resource.list('Patient').sort('birthdate', 'asc');
8181
```
8282

8383
And also, you want to sort this data by patients name
8484

8585
```typescript
86-
resource.list('Patient').sort('birthDate', 'acs').sort('name', 'acs');
86+
resource.list('Patient').sort('birthdate', 'asc').sort('name', 'asc');
8787
```
8888

8989
#### Count

0 commit comments

Comments
 (0)