code | type | title | description |
---|---|---|---|
true |
page |
updateSpecifications |
Update the validation specifications |
The updateSpecifications method allows you to create or update the validation specifications for a collection.
When the validation specification is not formatted correctly, a detailed error message is returned to help you fix it.
Future<Map<String, dynamic>> updateSpecifications(
String index,
String collection,
bool strict,
Map<String, dynamic> specifications,
)
Arguments | Type | Description |
---|---|---|
index |
String |
Index name |
collection |
String |
Collection name |
specifications |
Map<String, dynamic> |
Specifications to update |
A Map<String, dynamic>
representing the specifications.
It must follow the Specification Structure.
Returns a Map<String, dynamic>
containing the specifications.
<<< ./snippets/update-specifications.dart