Failed to filter records from 'Table'.\narray_search() expects parameter 2 to be array, string given

#1

Getting a 500 error when sending a GET request to a MongoDB service resource with defined fields while also fetching related data in the same db.

DreamFactory Version: 2.14.0

URL
/api/v2/mongodb/_table/SampleTable?fields=SampleNumber&related=SampleResultsTable_by_SampleNumber

Error
Failed to filter records from ‘SampleTable’.\narray_search() expects parameter 2 to be array, string given.

Everything works as expected when no specific fields are defined and related data is fetched or when fields are defined and related data is not fetched.

If you could point me in the right direction I would be forever grateful.

Denis

0 Likes