@sfxcode/nuxt-mongocamp-server 1.9.2 → 2.0.0

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.
Files changed (119) hide show
  1. package/README.md +97 -7
  2. package/dist/module.d.mts +31 -1
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +42 -4
  5. package/dist/runtime/api/apis/AdminApi.d.ts +9 -9
  6. package/dist/runtime/api/apis/AdminApi.js +6 -6
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +6 -6
  8. package/dist/runtime/api/apis/ApplicationApi.js +4 -4
  9. package/dist/runtime/api/apis/AuthApi.d.ts +7 -7
  10. package/dist/runtime/api/apis/AuthApi.js +6 -6
  11. package/dist/runtime/api/apis/BucketApi.d.ts +7 -7
  12. package/dist/runtime/api/apis/BucketApi.js +6 -6
  13. package/dist/runtime/api/apis/CollectionApi.d.ts +69 -28
  14. package/dist/runtime/api/apis/CollectionApi.js +46 -21
  15. package/dist/runtime/api/apis/DatabaseApi.d.ts +5 -5
  16. package/dist/runtime/api/apis/DatabaseApi.js +4 -4
  17. package/dist/runtime/api/apis/DocumentApi.d.ts +141 -24
  18. package/dist/runtime/api/apis/DocumentApi.js +85 -12
  19. package/dist/runtime/api/apis/FileApi.d.ts +38 -6
  20. package/dist/runtime/api/apis/FileApi.js +24 -4
  21. package/dist/runtime/api/apis/IndexApi.d.ts +6 -6
  22. package/dist/runtime/api/apis/IndexApi.js +4 -4
  23. package/dist/runtime/api/apis/JobsApi.d.ts +5 -5
  24. package/dist/runtime/api/apis/JobsApi.js +4 -4
  25. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  26. package/dist/runtime/api/docs/AdminApi.md +7 -7
  27. package/dist/runtime/api/docs/ApplicationApi.md +4 -4
  28. package/dist/runtime/api/docs/AuthApi.md +3 -3
  29. package/dist/runtime/api/docs/BucketApi.md +3 -3
  30. package/dist/runtime/api/docs/CollectionApi.md +48 -36
  31. package/dist/runtime/api/docs/DatabaseApi.md +2 -2
  32. package/dist/runtime/api/docs/DocumentApi.md +64 -28
  33. package/dist/runtime/api/docs/FileApi.md +20 -8
  34. package/dist/runtime/api/docs/IndexApi.md +4 -4
  35. package/dist/runtime/api/docs/JobsApi.md +2 -2
  36. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  37. package/dist/runtime/api/models/Capabilities.d.ts +1 -1
  38. package/dist/runtime/api/models/CapabilityLimits.d.ts +1 -1
  39. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  40. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +7 -4
  41. package/dist/runtime/api/models/CollectionCollation.d.ts +1 -1
  42. package/dist/runtime/api/models/CollectionOptions.d.ts +1 -1
  43. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
  44. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  45. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
  46. package/dist/runtime/api/models/ConnectionStats.d.ts +1 -1
  47. package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
  48. package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/CountResponse.d.ts +1 -1
  50. package/dist/runtime/api/models/CreateCollectionResponse.d.ts +1 -1
  51. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  52. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  54. package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
  55. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
  56. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/Grant.d.ts +1 -1
  58. package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
  59. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  60. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  61. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  62. package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
  63. package/dist/runtime/api/models/IndexKey.d.ts +1 -1
  64. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
  65. package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
  66. package/dist/runtime/api/models/InsertError.d.ts +1 -1
  67. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  68. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  69. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  70. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  71. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  72. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  73. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  74. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  75. package/dist/runtime/api/models/Login.d.ts +1 -1
  76. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  77. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  79. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  80. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  81. package/dist/runtime/api/models/OpCounters.d.ts +1 -1
  82. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  83. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  84. package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
  85. package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
  86. package/dist/runtime/api/models/ReplicaSetState.d.ts +1 -1
  87. package/dist/runtime/api/models/Role.d.ts +1 -1
  88. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  89. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +5 -3
  93. package/dist/runtime/api/models/SystemInfo.d.ts +1 -1
  94. package/dist/runtime/api/models/SystemStats.d.ts +1 -1
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  96. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  97. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  98. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  99. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  100. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  101. package/dist/runtime/api/models/Version.d.ts +1 -1
  102. package/dist/runtime/api/runtime.d.ts +1 -1
  103. package/dist/runtime/composables/mongocampApi.js +7 -0
  104. package/dist/runtime/composables/mongocampSearch.d.ts +3 -1
  105. package/dist/runtime/composables/mongocampSearch.js +3 -3
  106. package/dist/runtime/server/composables/mongocampApi.d.ts +2 -1
  107. package/dist/runtime/server/composables/mongocampApi.js +11 -5
  108. package/dist/runtime/server/composables/mongocampServerApi.d.ts +2 -1
  109. package/dist/runtime/server/composables/mongocampServerApi.js +3 -7
  110. package/dist/runtime/server/mongocamp/core.d.ts +22 -0
  111. package/dist/runtime/server/mongocamp/core.js +32 -0
  112. package/dist/runtime/server/mongocamp/handler.d.ts +3 -0
  113. package/dist/runtime/server/mongocamp/handler.js +8 -0
  114. package/dist/runtime/server/mongocamp/plugin.d.ts +3 -0
  115. package/dist/runtime/server/mongocamp/plugin.js +7 -0
  116. package/dist/runtime/utils/extendedJson.d.ts +12 -0
  117. package/dist/runtime/utils/extendedJson.js +60 -0
  118. package/dist/types.d.mts +1 -1
  119. package/package.json +40 -27
@@ -26,7 +26,7 @@ All URIs are relative to *http://localhost*
26
26
 
27
27
  ## aggregate
28
28
 
29
- > Array<{ [key: string]: any | null; }> aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page, filter, extendedJson)
29
+ > Array<{ [key: string]: any | null; }> aggregate(collectionName, mongoAggregateRequest, rowsPerPage, page, count, filter, extendedJson, filterCaseInsensitive)
30
30
 
31
31
  Aggregate in Collection
32
32
 
@@ -63,10 +63,14 @@ async function example() {
63
63
  rowsPerPage: 100,
64
64
  // number | Requested page of the ResultSets (optional)
65
65
  page: 1,
66
+ // 'exact' | 'none' | How the result is counted: exact (default) or none (no count headers, no count query) (optional)
67
+ count: exact,
66
68
  // string | Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch. (optional)
67
69
  filter: filter_example,
68
- // string | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. (optional)
70
+ // 'relaxed' | 'canonical' | 'plain' | relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types). (optional)
69
71
  extendedJson: extendedJson_example,
72
+ // boolean | true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc* (optional)
73
+ filterCaseInsensitive: false,
70
74
  } satisfies AggregateRequest;
71
75
 
72
76
  try {
@@ -90,8 +94,10 @@ example().catch(console.error);
90
94
  | **mongoAggregateRequest** | [MongoAggregateRequest](MongoAggregateRequest.md) | | |
91
95
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
92
96
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
97
+ | **count** | `exact`, `none` | How the result is counted: exact (default) or none (no count headers, no count query) | [Optional] [Defaults to `'exact'`] [Enum: exact, none] |
93
98
  | **filter** | `string` | Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch. | [Optional] [Defaults to `undefined`] |
94
- | **extendedJson** | `string` | relaxed or canonical: the documents with the types of their values as MongoDB Extended JSON ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}, canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}). Without the parameter the documents are returned as before. | [Optional] [Defaults to `undefined`] |
99
+ | **extendedJson** | `relaxed`, `canonical`, `plain` | relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({\"$oid\": ...}, {\"$date\": ...}, {\"$numberDecimal\": ...}; canonical also {\"$numberInt\": ...}, {\"$numberLong\": ...} and {\"$numberDouble\": ...}); a text that looks like a date is {\"$string\": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types). | [Optional] [Defaults to `'relaxed'`] [Enum: relaxed, canonical, plain] |
100
+ | **filterCaseInsensitive** | `boolean` | true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc* | [Optional] [Defaults to `false`] |
95
101
 
96
102
  ### Return type
97
103
 
@@ -123,7 +129,7 @@ example().catch(console.error);
123
129
 
124
130
  Clear Collection
125
131
 
126
- Delete all Document in Collection
132
+ Delete all Documents in Collection. 404 for a collection that does not exist (2.0.0).
127
133
 
128
134
  ### Example
129
135
 
@@ -196,7 +202,7 @@ example().catch(console.error);
196
202
 
197
203
  ## copyCollection
198
204
 
199
- > CopyResponse copyCollection(collectionName, copyRequest)
205
+ > CopyResponse copyCollection(collectionName, copyRequest, filterCaseInsensitive)
200
206
 
201
207
  Copy Collection
202
208
 
@@ -229,6 +235,8 @@ async function example() {
229
235
  collectionName: collectionName_example,
230
236
  // CopyRequest
231
237
  copyRequest: {"target":"copyOfCollection","filter":"type:company","withIndexes":true,"dropTarget":false},
238
+ // boolean | true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc* (optional)
239
+ filterCaseInsensitive: false,
232
240
  } satisfies CopyCollectionRequest;
233
241
 
234
242
  try {
@@ -250,6 +258,7 @@ example().catch(console.error);
250
258
  |------------- | ------------- | ------------- | -------------|
251
259
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
252
260
  | **copyRequest** | [CopyRequest](CopyRequest.md) | | |
261
+ | **filterCaseInsensitive** | `boolean` | true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc* | [Optional] [Defaults to `false`] |
253
262
 
254
263
  ### Return type
255
264
 
@@ -362,7 +371,7 @@ example().catch(console.error);
362
371
 
363
372
  Delete Collection
364
373
 
365
- Delete a given Collection
374
+ Delete a given Collection. 404 for a collection that does not exist (2.0.0).
366
375
 
367
376
  ### Example
368
377
 
@@ -435,7 +444,7 @@ example().catch(console.error);
435
444
 
436
445
  ## distinct
437
446
 
438
- > Array<any> distinct(collectionName, field, rowsPerPage, page)
447
+ > Array<any> distinct(collectionName, field, rowsPerPage, page, count)
439
448
 
440
449
  Distinct in Collection
441
450
 
@@ -472,6 +481,8 @@ async function example() {
472
481
  rowsPerPage: 100,
473
482
  // number | Requested page of the ResultSets (optional)
474
483
  page: 1,
484
+ // 'exact' | 'none' | How the result is counted: exact (default) or none (no count headers, no count query) (optional)
485
+ count: exact,
475
486
  } satisfies DistinctRequest;
476
487
 
477
488
  try {
@@ -495,6 +506,7 @@ example().catch(console.error);
495
506
  | **field** | `string` | The field for your distinct Request. | [Defaults to `undefined`] |
496
507
  | **rowsPerPage** | `number` | Count elements per page | [Optional] [Defaults to `undefined`] |
497
508
  | **page** | `number` | Requested page of the ResultSets | [Optional] [Defaults to `undefined`] |
509
+ | **count** | `exact`, `none` | How the result is counted: exact (default) or none (no count headers, no count query) | [Optional] [Defaults to `'exact'`] [Enum: exact, none] |
498
510
 
499
511
  ### Return type
500
512
 
@@ -526,7 +538,7 @@ example().catch(console.error);
526
538
 
527
539
  Collection Fields
528
540
 
529
- List the Fields in a given collection
541
+ List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
530
542
 
531
543
  ### Example
532
544
 
@@ -553,7 +565,7 @@ async function example() {
553
565
  const body = {
554
566
  // string | The name of your MongoDb Collection
555
567
  collectionName: collectionName_example,
556
- // number | Use sample size greater 0 (e.g. 1000) for better performance on big collections (optional)
568
+ // number | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. (optional)
557
569
  sampleSize: 1000,
558
570
  } satisfies GetCollectionFieldsRequest;
559
571
 
@@ -575,7 +587,7 @@ example().catch(console.error);
575
587
  | Name | Type | Description | Notes |
576
588
  |------------- | ------------- | ------------- | -------------|
577
589
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
578
- | **sampleSize** | `number` | Use sample size greater 0 (e.g. 1000) for better performance on big collections | [Optional] [Defaults to `undefined`] |
590
+ | **sampleSize** | `number` | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. | [Optional] [Defaults to `1000`] |
579
591
 
580
592
  ### Return type
581
593
 
@@ -595,7 +607,7 @@ example().catch(console.error);
595
607
  | Status code | Description | Response headers |
596
608
  |-------------|-------------|------------------|
597
609
  | **200** | | - |
598
- | **400** | Invalid value for: query parameter sample size | - |
610
+ | **400** | Invalid value for: query parameter sampleSize | - |
599
611
  | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
600
612
 
601
613
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -607,7 +619,7 @@ example().catch(console.error);
607
619
 
608
620
  Collection Information
609
621
 
610
- All Information about a single Collection
622
+ All Information about a single Collection. 404 for a collection that does not exist (2.0.0).
611
623
 
612
624
  ### Example
613
625
 
@@ -765,7 +777,7 @@ example().catch(console.error);
765
777
 
766
778
  Fields of a Collection with types
767
779
 
768
- All fields of a collection as a flat list, one entry per path (&#x60;address.city&#x60;, &#x60;tags[]&#x60; for the elements of an array) with the types of the values and how often every type was found in the analysed documents.
780
+ All fields of a collection as a flat list, one entry per path (&#x60;address.city&#x60;, &#x60;tags[]&#x60; for the elements of an array) with the types of the values and how often every type was found in the analysed documents. 404 for a collection that does not exist (2.0.0).
769
781
 
770
782
  ### Example
771
783
 
@@ -792,9 +804,9 @@ async function example() {
792
804
  const body = {
793
805
  // string | The name of your MongoDb Collection
794
806
  collectionName: collectionName_example,
795
- // number | Number of documents that are analysed, 1000 by default. A greater sample is more exact and slower on big collections. (optional)
807
+ // number | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. (optional)
796
808
  sampleSize: 1000,
797
- // number | How deep should the objects extracted (optional)
809
+ // number | How deep nested objects are analysed (optional)
798
810
  depth: 56,
799
811
  } satisfies GetFieldDetailsRequest;
800
812
 
@@ -816,8 +828,8 @@ example().catch(console.error);
816
828
  | Name | Type | Description | Notes |
817
829
  |------------- | ------------- | ------------- | -------------|
818
830
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
819
- | **sampleSize** | `number` | Number of documents that are analysed, 1000 by default. A greater sample is more exact and slower on big collections. | [Optional] [Defaults to `1000`] |
820
- | **depth** | `number` | How deep should the objects extracted | [Optional] [Defaults to `3`] |
831
+ | **sampleSize** | `number` | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. | [Optional] [Defaults to `1000`] |
832
+ | **depth** | `number` | How deep nested objects are analysed | [Optional] [Defaults to `3`] |
821
833
 
822
834
  ### Return type
823
835
 
@@ -845,11 +857,11 @@ example().catch(console.error);
845
857
 
846
858
  ## getJsonSchema
847
859
 
848
- > JsonSchema getJsonSchema(collectionName, sampleSize, deepth)
860
+ > JsonSchema getJsonSchema(collectionName, sampleSize, depth)
849
861
 
850
862
  Collection Fields
851
863
 
852
- List the Fields in a given collection
864
+ List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
853
865
 
854
866
  ### Example
855
867
 
@@ -876,10 +888,10 @@ async function example() {
876
888
  const body = {
877
889
  // string | The name of your MongoDb Collection
878
890
  collectionName: collectionName_example,
879
- // number | Use sample size greater 0 (e.g. 5000) for better performance on big collections (optional)
880
- sampleSize: 5000,
881
- // number | How deep should the objects extracted (optional)
882
- deepth: 56,
891
+ // number | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. (optional)
892
+ sampleSize: 1000,
893
+ // number | How deep nested objects are analysed (optional)
894
+ depth: 56,
883
895
  } satisfies GetJsonSchemaRequest;
884
896
 
885
897
  try {
@@ -900,8 +912,8 @@ example().catch(console.error);
900
912
  | Name | Type | Description | Notes |
901
913
  |------------- | ------------- | ------------- | -------------|
902
914
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
903
- | **sampleSize** | `number` | Use sample size greater 0 (e.g. 5000) for better performance on big collections | [Optional] [Defaults to `undefined`] |
904
- | **deepth** | `number` | How deep should the objects extracted | [Optional] [Defaults to `3`] |
915
+ | **sampleSize** | `number` | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. | [Optional] [Defaults to `1000`] |
916
+ | **depth** | `number` | How deep nested objects are analysed | [Optional] [Defaults to `3`] |
905
917
 
906
918
  ### Return type
907
919
 
@@ -921,7 +933,7 @@ example().catch(console.error);
921
933
  | Status code | Description | Response headers |
922
934
  |-------------|-------------|------------------|
923
935
  | **200** | | - |
924
- | **400** | Invalid value for: query parameter sampleSize, Invalid value for: query parameter deepth | - |
936
+ | **400** | Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth | - |
925
937
  | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
926
938
 
927
939
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -929,11 +941,11 @@ example().catch(console.error);
929
941
 
930
942
  ## getSchemaAnalysis
931
943
 
932
- > SchemaAnalysis getSchemaAnalysis(collectionName, sampleSize, deepth)
944
+ > SchemaAnalysis getSchemaAnalysis(collectionName, sampleSize, depth)
933
945
 
934
946
  Collection Fields
935
947
 
936
- List the Fields in a given collection
948
+ List the Fields in a given collection. 404 for a collection that does not exist (2.0.0).
937
949
 
938
950
  ### Example
939
951
 
@@ -960,10 +972,10 @@ async function example() {
960
972
  const body = {
961
973
  // string | The name of your MongoDb Collection
962
974
  collectionName: collectionName_example,
963
- // number | Use sample size greater 0 (e.g. 5000) for better performance on big collections (optional)
964
- sampleSize: 5000,
965
- // number | How deep should the objects extracted (optional)
966
- deepth: 56,
975
+ // number | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. (optional)
976
+ sampleSize: 1000,
977
+ // number | How deep nested objects are analysed (optional)
978
+ depth: 56,
967
979
  } satisfies GetSchemaAnalysisRequest;
968
980
 
969
981
  try {
@@ -984,8 +996,8 @@ example().catch(console.error);
984
996
  | Name | Type | Description | Notes |
985
997
  |------------- | ------------- | ------------- | -------------|
986
998
  | **collectionName** | `string` | The name of your MongoDb Collection | [Defaults to `undefined`] |
987
- | **sampleSize** | `number` | Use sample size greater 0 (e.g. 5000) for better performance on big collections | [Optional] [Defaults to `undefined`] |
988
- | **deepth** | `number` | How deep should the objects extracted | [Optional] [Defaults to `3`] |
999
+ | **sampleSize** | `number` | Number of documents that are analysed, 1000 by default (2.0.0; 1.x read every document); 0 reads every document. With a sample the counts and shares are estimates. | [Optional] [Defaults to `1000`] |
1000
+ | **depth** | `number` | How deep nested objects are analysed | [Optional] [Defaults to `3`] |
989
1001
 
990
1002
  ### Return type
991
1003
 
@@ -1005,7 +1017,7 @@ example().catch(console.error);
1005
1017
  | Status code | Description | Response headers |
1006
1018
  |-------------|-------------|------------------|
1007
1019
  | **200** | | - |
1008
- | **400** | Invalid value for: query parameter sampleSize, Invalid value for: query parameter deepth | - |
1020
+ | **400** | Invalid value for: query parameter sampleSize, Invalid value for: query parameter depth | - |
1009
1021
  | **0** | | * x-error-code - Error Code <br> * x-error-message - Message of the MongoCampException <br> * x-error-additional-info - Additional information for the MongoCampException <br> |
1010
1022
 
1011
1023
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
@@ -1166,7 +1178,7 @@ This endpoint does not need any parameter.
1166
1178
 
1167
1179
  List of Collections
1168
1180
 
1169
- List of all Collections of the given database
1181
+ List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
1170
1182
 
1171
1183
  ### Example
1172
1184
 
@@ -87,7 +87,7 @@ This endpoint does not need any parameter.
87
87
 
88
88
  Delete Database
89
89
 
90
- Delete given Database
90
+ Delete given Database. 404 for a database that does not exist (2.0.0).
91
91
 
92
92
  ### Example
93
93
 
@@ -241,7 +241,7 @@ example().catch(console.error);
241
241
 
242
242
  List of Collections
243
243
 
244
- List of all Collections of the given database
244
+ List of all Collections of the given database. 404 for a database (for administrators; every other user gets an empty list) that does not exist (2.0.0).
245
245
 
246
246
  ### Example
247
247