Closed ImJustToNy closed 2 years ago
Hi @ImJustToNy , Thank you for reporting this.
The parameter to getRelatedProducts
should be an array of arrays, can you check with the following code, please?
RecommendClient::create('foo', 'bar', 'baz')->getRelatedProducts([[ 'indexName' => 'example', 'objectID' => '5' ]]);
Thank you in advance!
Oh! My bad. Thank you for your help, it works just fine now.
Description
When you try to use![image](https://user-images.githubusercontent.com/5730766/135988759-c29ecdb2-304a-43a9-90bb-069c1b1d199e.png)
RecommendedClilent()->getRelatedProducts()
it throws an error.Steps To Reproduce
RecommendClient::create('foo', 'bar', 'baz')->getRelatedProducts([ 'indexName' => 'example', 'objectID' => '5' ])