Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.27 KB

File metadata and controls

45 lines (31 loc) · 1.27 KB
code type title description
true
page
updateSpecifications
Update the validation specifications

updateSpecifications

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

specifications

A Map<String, dynamic> representing the specifications.

It must follow the Specification Structure.

Returns

Returns a Map<String, dynamic> containing the specifications.

Usage

<<< ./snippets/update-specifications.dart