adminmate-express-mongoose 1.2.2 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,56 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Testing GET /api/models/:model/actions should return a 200 http response for cars 1`] = `
4
- Object {
5
- "list": Array [
6
- Object {
7
- "code": "delete",
8
- "label": "Delete selected",
9
- },
10
- ],
11
- }
12
- `;
13
-
14
- exports[`Testing GET /api/models/:model/actions should return a 200 http response for cars-bulk 1`] = `
15
- Object {
16
- "list": Array [
17
- Object {
18
- "code": "delete",
19
- "label": "Delete selected",
20
- },
21
- ],
22
- }
23
- `;
24
-
25
- exports[`Testing GET /api/models/:model/actions should return a 200 http response for cars-item 1`] = `
26
- Object {
27
- "list": Array [
28
- Object {
29
- "code": "block_car",
30
- "label": "Block the car",
31
- "passFilter": true,
32
- "target": Array [
33
- "item",
34
- ],
35
- },
36
- Object {
37
- "type": "separator",
38
- },
39
- Object {
40
- "code": "delete",
41
- "label": "Delete",
42
- },
43
- ],
44
- }
45
- `;
46
-
47
- exports[`Testing GET /api/models/:model/actions should return a 200 http response for users 1`] = `
48
- Object {
49
- "list": Array [
50
- Object {
51
- "code": "delete",
52
- "label": "Delete",
53
- },
54
- ],
55
- }
56
- `;
@@ -1,656 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Testing POST /api/models/cars With "fields" parameter (name & manufacturer only) 1`] = `
4
- Object {
5
- "count": 20,
6
- "data": Array [
7
- Object {
8
- "_id": "5cd5308e695db945d3cc81d2",
9
- "manufacturer": "Ferrari",
10
- "name": "Ferrari 250 LM",
11
- },
12
- Object {
13
- "_id": "5cd5308e695db945d3cc81d1",
14
- "manufacturer": "Ferrari",
15
- "name": "Ferrari 275",
16
- },
17
- Object {
18
- "_id": "5cd5308e695db945d3cc81c9",
19
- "manufacturer": "Ferrari",
20
- "name": "Ferrari 488",
21
- },
22
- Object {
23
- "_id": "5cd5308e695db945d3cc81c8",
24
- "manufacturer": "Ferrari",
25
- "name": "Ferrari 250 GT Lusso",
26
- },
27
- Object {
28
- "_id": "5cd5308e695db945d3cc81c7",
29
- "manufacturer": "Ferrari",
30
- "name": "Ferrari 250 GTO",
31
- },
32
- Object {
33
- "_id": "5cd5308e695db945d3cc81c6",
34
- "manufacturer": "Ferrari",
35
- "name": "Ferrari 250 GT 2+2",
36
- },
37
- Object {
38
- "_id": "5cd5308e695db945d3cc81c5",
39
- "manufacturer": "Ferrari",
40
- "name": "Ferrari 250 GT Berlinetta SWB",
41
- },
42
- Object {
43
- "_id": "5cd5308e695db945d3cc81c4",
44
- "manufacturer": "Ferrari",
45
- "name": "Ferrari 250 GT Coupé",
46
- },
47
- Object {
48
- "_id": "5cd5308e695db945d3cc81c3",
49
- "manufacturer": "Ferrari",
50
- "name": "Ferrari 250 MM",
51
- },
52
- Object {
53
- "_id": "5cd5308e695db945d3cc81c2",
54
- "manufacturer": "Ferrari",
55
- "name": "Ferrari 212 Inter",
56
- },
57
- ],
58
- "pagination": Object {
59
- "count": 2,
60
- "current": 1,
61
- },
62
- }
63
- `;
64
-
65
- exports[`Testing POST /api/models/cars With "page" parameter set to 2 1`] = `
66
- Object {
67
- "count": 20,
68
- "data": Array [
69
- Object {
70
- "_id": "5cd5308e695db945d3cc81c1",
71
- "createdAt": "2021-04-02T00:00:00.000Z",
72
- "manufacturer": "Porsche",
73
- "name": "Porsche Macan",
74
- "updatedAt": "2021-04-02T00:00:00.000Z",
75
- "user_id": Object {
76
- "id": "5cd5308e695db945d3cc81a2",
77
- "label": "5cd5308e695db945d3cc81a2",
78
- "type": "ref",
79
- },
80
- "year": 2014,
81
- },
82
- Object {
83
- "_id": "5cd5308e695db945d3cc81b9",
84
- "createdAt": "2021-04-02T00:00:00.000Z",
85
- "manufacturer": "Porsche",
86
- "name": "Porsche 924",
87
- "updatedAt": "2021-04-02T00:00:00.000Z",
88
- "user_id": Object {
89
- "id": "5cd5308e695db945d3cc81a2",
90
- "label": "5cd5308e695db945d3cc81a2",
91
- "type": "ref",
92
- },
93
- "year": 1976,
94
- },
95
- Object {
96
- "_id": "5cd5308e695db945d3cc81b8",
97
- "createdAt": "2021-04-02T00:00:00.000Z",
98
- "manufacturer": "Porsche",
99
- "name": "Porsche 917",
100
- "updatedAt": "2021-04-02T00:00:00.000Z",
101
- "user_id": Object {
102
- "id": "5cd5308e695db945d3cc81a2",
103
- "label": "5cd5308e695db945d3cc81a2",
104
- "type": "ref",
105
- },
106
- "year": 1969,
107
- },
108
- Object {
109
- "_id": "5cd5308e695db945d3cc81b7",
110
- "createdAt": "2021-04-02T00:00:00.000Z",
111
- "manufacturer": "Porsche",
112
- "name": "Porsche 914",
113
- "updatedAt": "2021-04-02T00:00:00.000Z",
114
- "user_id": Object {
115
- "id": "5cd5308e695db945d3cc81a1",
116
- "label": "5cd5308e695db945d3cc81a1",
117
- "type": "ref",
118
- },
119
- "year": 1969,
120
- },
121
- Object {
122
- "_id": "5cd5308e695db945d3cc81b6",
123
- "createdAt": "2021-04-02T00:00:00.000Z",
124
- "manufacturer": "Porsche",
125
- "name": "Porsche 908",
126
- "updatedAt": "2021-04-02T00:00:00.000Z",
127
- "user_id": Object {
128
- "id": "5cd5308e695db945d3cc81a2",
129
- "label": "5cd5308e695db945d3cc81a2",
130
- "type": "ref",
131
- },
132
- "year": 1968,
133
- },
134
- Object {
135
- "_id": "5cd5308e695db945d3cc81b5",
136
- "createdAt": "2021-04-02T00:00:00.000Z",
137
- "manufacturer": "Porsche",
138
- "name": "Porsche 906",
139
- "updatedAt": "2021-04-02T00:00:00.000Z",
140
- "user_id": Object {
141
- "id": "5cd5308e695db945d3cc81a1",
142
- "label": "5cd5308e695db945d3cc81a1",
143
- "type": "ref",
144
- },
145
- "year": 1966,
146
- },
147
- Object {
148
- "_id": "5cd5308e695db945d3cc81b4",
149
- "createdAt": "2021-04-02T00:00:00.000Z",
150
- "manufacturer": "Porsche",
151
- "name": "Porsche 904",
152
- "updatedAt": "2021-04-02T00:00:00.000Z",
153
- "user_id": Object {
154
- "id": "5cd5308e695db945d3cc81a2",
155
- "label": "5cd5308e695db945d3cc81a2",
156
- "type": "ref",
157
- },
158
- "year": 1964,
159
- },
160
- Object {
161
- "_id": "5cd5308e695db945d3cc81b3",
162
- "createdAt": "2021-04-02T00:00:00.000Z",
163
- "manufacturer": "Porsche",
164
- "name": "Porsche 911",
165
- "updatedAt": "2021-04-02T00:00:00.000Z",
166
- "user_id": Object {
167
- "id": "5cd5308e695db945d3cc81a1",
168
- "label": "5cd5308e695db945d3cc81a1",
169
- "type": "ref",
170
- },
171
- "year": 1963,
172
- },
173
- Object {
174
- "_id": "5cd5308e695db945d3cc81b2",
175
- "createdAt": "2021-04-02T00:00:00.000Z",
176
- "manufacturer": "Porsche",
177
- "name": "Porsche 550",
178
- "updatedAt": "2021-04-02T00:00:00.000Z",
179
- "user_id": Object {
180
- "id": "5cd5308e695db945d3cc81a2",
181
- "label": "5cd5308e695db945d3cc81a2",
182
- "type": "ref",
183
- },
184
- "year": 1953,
185
- },
186
- Object {
187
- "_id": "5cd5308e695db945d3cc81b1",
188
- "createdAt": "2021-04-02T00:00:00.000Z",
189
- "manufacturer": "Porsche",
190
- "name": "Porsche 356",
191
- "updatedAt": "2021-04-02T00:00:00.000Z",
192
- "user_id": Object {
193
- "id": "5cd5308e695db945d3cc81a1",
194
- "label": "5cd5308e695db945d3cc81a1",
195
- "type": "ref",
196
- },
197
- "year": 1948,
198
- },
199
- ],
200
- "pagination": Object {
201
- "count": 2,
202
- "current": 2,
203
- },
204
- }
205
- `;
206
-
207
- exports[`Testing POST /api/models/cars With "refFields" parameter 1`] = `
208
- Object {
209
- "count": 20,
210
- "data": Array [
211
- Object {
212
- "_id": "5cd5308e695db945d3cc81d2",
213
- "createdAt": "2021-04-02T00:00:00.000Z",
214
- "manufacturer": "Ferrari",
215
- "name": "Ferrari 250 LM",
216
- "updatedAt": "2021-04-02T00:00:00.000Z",
217
- "user_id": Object {
218
- "id": "5cd5308e695db945d3cc81a2",
219
- "label": "Maria Doe",
220
- "type": "ref",
221
- },
222
- "year": 1964,
223
- },
224
- Object {
225
- "_id": "5cd5308e695db945d3cc81d1",
226
- "createdAt": "2021-04-02T00:00:00.000Z",
227
- "manufacturer": "Ferrari",
228
- "name": "Ferrari 275",
229
- "updatedAt": "2021-04-02T00:00:00.000Z",
230
- "user_id": Object {
231
- "id": "5cd5308e695db945d3cc81a2",
232
- "label": "Maria Doe",
233
- "type": "ref",
234
- },
235
- "year": 1964,
236
- },
237
- Object {
238
- "_id": "5cd5308e695db945d3cc81c9",
239
- "createdAt": "2021-04-02T00:00:00.000Z",
240
- "manufacturer": "Ferrari",
241
- "name": "Ferrari 488",
242
- "updatedAt": "2021-04-02T00:00:00.000Z",
243
- "user_id": Object {
244
- "id": "5cd5308e695db945d3cc81a2",
245
- "label": "Maria Doe",
246
- "type": "ref",
247
- },
248
- "year": 1969,
249
- },
250
- Object {
251
- "_id": "5cd5308e695db945d3cc81c8",
252
- "createdAt": "2021-04-02T00:00:00.000Z",
253
- "manufacturer": "Ferrari",
254
- "name": "Ferrari 250 GT Lusso",
255
- "updatedAt": "2021-04-02T00:00:00.000Z",
256
- "user_id": Object {
257
- "id": "5cd5308e695db945d3cc81a1",
258
- "label": "John Doe",
259
- "type": "ref",
260
- },
261
- "year": 1962,
262
- },
263
- Object {
264
- "_id": "5cd5308e695db945d3cc81c7",
265
- "createdAt": "2021-04-02T00:00:00.000Z",
266
- "manufacturer": "Ferrari",
267
- "name": "Ferrari 250 GTO",
268
- "updatedAt": "2021-04-02T00:00:00.000Z",
269
- "user_id": Object {
270
- "id": "5cd5308e695db945d3cc81a2",
271
- "label": "Maria Doe",
272
- "type": "ref",
273
- },
274
- "year": 1962,
275
- },
276
- Object {
277
- "_id": "5cd5308e695db945d3cc81c6",
278
- "createdAt": "2021-04-02T00:00:00.000Z",
279
- "manufacturer": "Ferrari",
280
- "name": "Ferrari 250 GT 2+2",
281
- "updatedAt": "2021-04-02T00:00:00.000Z",
282
- "user_id": Object {
283
- "id": "5cd5308e695db945d3cc81a1",
284
- "label": "John Doe",
285
- "type": "ref",
286
- },
287
- "year": 1960,
288
- },
289
- Object {
290
- "_id": "5cd5308e695db945d3cc81c5",
291
- "createdAt": "2021-04-02T00:00:00.000Z",
292
- "manufacturer": "Ferrari",
293
- "name": "Ferrari 250 GT Berlinetta SWB",
294
- "updatedAt": "2021-04-02T00:00:00.000Z",
295
- "user_id": Object {
296
- "id": "5cd5308e695db945d3cc81a2",
297
- "label": "Maria Doe",
298
- "type": "ref",
299
- },
300
- "year": 1959,
301
- },
302
- Object {
303
- "_id": "5cd5308e695db945d3cc81c4",
304
- "createdAt": "2021-04-02T00:00:00.000Z",
305
- "manufacturer": "Ferrari",
306
- "name": "Ferrari 250 GT Coupé",
307
- "updatedAt": "2021-04-02T00:00:00.000Z",
308
- "user_id": Object {
309
- "id": "5cd5308e695db945d3cc81a1",
310
- "label": "John Doe",
311
- "type": "ref",
312
- },
313
- "year": 1954,
314
- },
315
- Object {
316
- "_id": "5cd5308e695db945d3cc81c3",
317
- "createdAt": "2021-04-02T00:00:00.000Z",
318
- "manufacturer": "Ferrari",
319
- "name": "Ferrari 250 MM",
320
- "updatedAt": "2021-04-02T00:00:00.000Z",
321
- "user_id": Object {
322
- "id": "5cd5308e695db945d3cc81a2",
323
- "label": "Maria Doe",
324
- "type": "ref",
325
- },
326
- "year": 1952,
327
- },
328
- Object {
329
- "_id": "5cd5308e695db945d3cc81c2",
330
- "createdAt": "2021-04-02T00:00:00.000Z",
331
- "manufacturer": "Ferrari",
332
- "name": "Ferrari 212 Inter",
333
- "updatedAt": "2021-04-02T00:00:00.000Z",
334
- "user_id": Object {
335
- "id": "5cd5308e695db945d3cc81a1",
336
- "label": "John Doe",
337
- "type": "ref",
338
- },
339
- "year": 1951,
340
- },
341
- ],
342
- "pagination": Object {
343
- "count": 2,
344
- "current": 1,
345
- },
346
- }
347
- `;
348
-
349
- exports[`Testing POST /api/models/cars With a "filters" parameter 1`] = `
350
- Object {
351
- "count": 3,
352
- "data": Array [
353
- Object {
354
- "_id": "5cd5308e695db945d3cc81b8",
355
- "name": "Porsche 917",
356
- "year": 1969,
357
- },
358
- Object {
359
- "_id": "5cd5308e695db945d3cc81b7",
360
- "name": "Porsche 914",
361
- "year": 1969,
362
- },
363
- Object {
364
- "_id": "5cd5308e695db945d3cc81b6",
365
- "name": "Porsche 908",
366
- "year": 1968,
367
- },
368
- ],
369
- "pagination": Object {
370
- "count": 1,
371
- "current": 1,
372
- },
373
- }
374
- `;
375
-
376
- exports[`Testing POST /api/models/cars With a "order" parameter 1`] = `
377
- Object {
378
- "count": 3,
379
- "data": Array [
380
- Object {
381
- "_id": "5cd5308e695db945d3cc81b3",
382
- "name": "Porsche 911",
383
- },
384
- Object {
385
- "_id": "5cd5308e695db945d3cc81b7",
386
- "name": "Porsche 914",
387
- },
388
- Object {
389
- "_id": "5cd5308e695db945d3cc81b8",
390
- "name": "Porsche 917",
391
- },
392
- ],
393
- "pagination": Object {
394
- "count": 1,
395
- "current": 1,
396
- },
397
- }
398
- `;
399
-
400
- exports[`Testing POST /api/models/cars With a "search" parameter 1`] = `
401
- Object {
402
- "count": 3,
403
- "data": Array [
404
- Object {
405
- "_id": "5cd5308e695db945d3cc81b8",
406
- "name": "Porsche 917",
407
- },
408
- Object {
409
- "_id": "5cd5308e695db945d3cc81b7",
410
- "name": "Porsche 914",
411
- },
412
- Object {
413
- "_id": "5cd5308e695db945d3cc81b3",
414
- "name": "Porsche 911",
415
- },
416
- ],
417
- "pagination": Object {
418
- "count": 1,
419
- "current": 1,
420
- },
421
- }
422
- `;
423
-
424
- exports[`Testing POST /api/models/cars With a "segment" parameter 1`] = `
425
- Object {
426
- "count": 10,
427
- "data": Array [
428
- Object {
429
- "_id": "5cd5308e695db945d3cc81d2",
430
- "name": "Ferrari 250 LM",
431
- "year": 1964,
432
- },
433
- Object {
434
- "_id": "5cd5308e695db945d3cc81d1",
435
- "name": "Ferrari 275",
436
- "year": 1964,
437
- },
438
- Object {
439
- "_id": "5cd5308e695db945d3cc81c9",
440
- "name": "Ferrari 488",
441
- "year": 1969,
442
- },
443
- Object {
444
- "_id": "5cd5308e695db945d3cc81c8",
445
- "name": "Ferrari 250 GT Lusso",
446
- "year": 1962,
447
- },
448
- Object {
449
- "_id": "5cd5308e695db945d3cc81c7",
450
- "name": "Ferrari 250 GTO",
451
- "year": 1962,
452
- },
453
- Object {
454
- "_id": "5cd5308e695db945d3cc81c6",
455
- "name": "Ferrari 250 GT 2+2",
456
- "year": 1960,
457
- },
458
- Object {
459
- "_id": "5cd5308e695db945d3cc81c5",
460
- "name": "Ferrari 250 GT Berlinetta SWB",
461
- "year": 1959,
462
- },
463
- Object {
464
- "_id": "5cd5308e695db945d3cc81c4",
465
- "name": "Ferrari 250 GT Coupé",
466
- "year": 1954,
467
- },
468
- Object {
469
- "_id": "5cd5308e695db945d3cc81c3",
470
- "name": "Ferrari 250 MM",
471
- "year": 1952,
472
- },
473
- Object {
474
- "_id": "5cd5308e695db945d3cc81c2",
475
- "name": "Ferrari 212 Inter",
476
- "year": 1951,
477
- },
478
- ],
479
- "pagination": Object {
480
- "count": 1,
481
- "current": 1,
482
- },
483
- }
484
- `;
485
-
486
- exports[`Testing POST /api/models/cars With access token 1`] = `
487
- Object {
488
- "count": 20,
489
- "data": Array [
490
- Object {
491
- "_id": "5cd5308e695db945d3cc81d2",
492
- "createdAt": "2021-04-02T00:00:00.000Z",
493
- "manufacturer": "Ferrari",
494
- "name": "Ferrari 250 LM",
495
- "updatedAt": "2021-04-02T00:00:00.000Z",
496
- "user_id": Object {
497
- "id": "5cd5308e695db945d3cc81a2",
498
- "label": "5cd5308e695db945d3cc81a2",
499
- "type": "ref",
500
- },
501
- "year": 1964,
502
- },
503
- Object {
504
- "_id": "5cd5308e695db945d3cc81d1",
505
- "createdAt": "2021-04-02T00:00:00.000Z",
506
- "manufacturer": "Ferrari",
507
- "name": "Ferrari 275",
508
- "updatedAt": "2021-04-02T00:00:00.000Z",
509
- "user_id": Object {
510
- "id": "5cd5308e695db945d3cc81a2",
511
- "label": "5cd5308e695db945d3cc81a2",
512
- "type": "ref",
513
- },
514
- "year": 1964,
515
- },
516
- Object {
517
- "_id": "5cd5308e695db945d3cc81c9",
518
- "createdAt": "2021-04-02T00:00:00.000Z",
519
- "manufacturer": "Ferrari",
520
- "name": "Ferrari 488",
521
- "updatedAt": "2021-04-02T00:00:00.000Z",
522
- "user_id": Object {
523
- "id": "5cd5308e695db945d3cc81a2",
524
- "label": "5cd5308e695db945d3cc81a2",
525
- "type": "ref",
526
- },
527
- "year": 1969,
528
- },
529
- Object {
530
- "_id": "5cd5308e695db945d3cc81c8",
531
- "createdAt": "2021-04-02T00:00:00.000Z",
532
- "manufacturer": "Ferrari",
533
- "name": "Ferrari 250 GT Lusso",
534
- "updatedAt": "2021-04-02T00:00:00.000Z",
535
- "user_id": Object {
536
- "id": "5cd5308e695db945d3cc81a1",
537
- "label": "5cd5308e695db945d3cc81a1",
538
- "type": "ref",
539
- },
540
- "year": 1962,
541
- },
542
- Object {
543
- "_id": "5cd5308e695db945d3cc81c7",
544
- "createdAt": "2021-04-02T00:00:00.000Z",
545
- "manufacturer": "Ferrari",
546
- "name": "Ferrari 250 GTO",
547
- "updatedAt": "2021-04-02T00:00:00.000Z",
548
- "user_id": Object {
549
- "id": "5cd5308e695db945d3cc81a2",
550
- "label": "5cd5308e695db945d3cc81a2",
551
- "type": "ref",
552
- },
553
- "year": 1962,
554
- },
555
- Object {
556
- "_id": "5cd5308e695db945d3cc81c6",
557
- "createdAt": "2021-04-02T00:00:00.000Z",
558
- "manufacturer": "Ferrari",
559
- "name": "Ferrari 250 GT 2+2",
560
- "updatedAt": "2021-04-02T00:00:00.000Z",
561
- "user_id": Object {
562
- "id": "5cd5308e695db945d3cc81a1",
563
- "label": "5cd5308e695db945d3cc81a1",
564
- "type": "ref",
565
- },
566
- "year": 1960,
567
- },
568
- Object {
569
- "_id": "5cd5308e695db945d3cc81c5",
570
- "createdAt": "2021-04-02T00:00:00.000Z",
571
- "manufacturer": "Ferrari",
572
- "name": "Ferrari 250 GT Berlinetta SWB",
573
- "updatedAt": "2021-04-02T00:00:00.000Z",
574
- "user_id": Object {
575
- "id": "5cd5308e695db945d3cc81a2",
576
- "label": "5cd5308e695db945d3cc81a2",
577
- "type": "ref",
578
- },
579
- "year": 1959,
580
- },
581
- Object {
582
- "_id": "5cd5308e695db945d3cc81c4",
583
- "createdAt": "2021-04-02T00:00:00.000Z",
584
- "manufacturer": "Ferrari",
585
- "name": "Ferrari 250 GT Coupé",
586
- "updatedAt": "2021-04-02T00:00:00.000Z",
587
- "user_id": Object {
588
- "id": "5cd5308e695db945d3cc81a1",
589
- "label": "5cd5308e695db945d3cc81a1",
590
- "type": "ref",
591
- },
592
- "year": 1954,
593
- },
594
- Object {
595
- "_id": "5cd5308e695db945d3cc81c3",
596
- "createdAt": "2021-04-02T00:00:00.000Z",
597
- "manufacturer": "Ferrari",
598
- "name": "Ferrari 250 MM",
599
- "updatedAt": "2021-04-02T00:00:00.000Z",
600
- "user_id": Object {
601
- "id": "5cd5308e695db945d3cc81a2",
602
- "label": "5cd5308e695db945d3cc81a2",
603
- "type": "ref",
604
- },
605
- "year": 1952,
606
- },
607
- Object {
608
- "_id": "5cd5308e695db945d3cc81c2",
609
- "createdAt": "2021-04-02T00:00:00.000Z",
610
- "manufacturer": "Ferrari",
611
- "name": "Ferrari 212 Inter",
612
- "updatedAt": "2021-04-02T00:00:00.000Z",
613
- "user_id": Object {
614
- "id": "5cd5308e695db945d3cc81a1",
615
- "label": "5cd5308e695db945d3cc81a1",
616
- "type": "ref",
617
- },
618
- "year": 1951,
619
- },
620
- ],
621
- "pagination": Object {
622
- "count": 2,
623
- "current": 1,
624
- },
625
- }
626
- `;
627
-
628
- exports[`Testing POST /api/models/users With access token 1`] = `
629
- Object {
630
- "count": 2,
631
- "data": Array [
632
- Object {
633
- "_id": "5cd5308e695db945d3cc81a2",
634
- "birthdate": "2021-04-02T00:00:00.000Z",
635
- "createdAt": "2021-04-02T00:00:00.000Z",
636
- "firstname": "Maria",
637
- "lastname": "Doe",
638
- "rating": 5,
639
- "updatedAt": "2021-04-02T00:00:00.000Z",
640
- },
641
- Object {
642
- "_id": "5cd5308e695db945d3cc81a1",
643
- "birthdate": "2021-04-02T00:00:00.000Z",
644
- "createdAt": "2021-04-02T00:00:00.000Z",
645
- "firstname": "John",
646
- "lastname": "Doe",
647
- "rating": 4,
648
- "updatedAt": "2021-04-02T00:00:00.000Z",
649
- },
650
- ],
651
- "pagination": Object {
652
- "count": 1,
653
- "current": 1,
654
- },
655
- }
656
- `;