Home / node / Commands / functions / convertFieldsAndValuesToHashDataType @valkey/valkey-glide
@valkey/valkey-glide / Commands / convertFieldsAndValuesToHashDataType
Function: convertFieldsAndValuesToHashDataType()
convertFieldsAndValuesToHashDataType(
fieldsAndValues):HashDataType
This function converts an input from HashDataType or Record types to HashDataType.
Parameters
fieldsAndValues
field names and their values.
Record\<string, GlideString> | HashDataType
Returns
HashDataType array containing field names and their values.