Fixes #4231: The apoc.vectordb.milvus.query* and apoc.vectordb.weaviate.query* procedures should get the fields config from metadataKey if present #4241
Added new method addMetadataKeyToFields in VectorDbUtil: the method extracts fields or creates a new ArrayList, evaluates whether the metadata map is full and extracts the metadataKey string.
If the string is not empty or null it adds it to the fields list
Fixes #4231
Added new method
addMetadataKeyToFields
in VectorDbUtil: the method extracts fields or creates a new ArrayList, evaluates whether the metadata map is full and extracts the metadataKey string. If the string is not empty or null it adds it to the fields list