Describe the bug
When one sets a list of facet filters for a query to be performed as part of getObjects() inside AlgoliaMultiIndexesReference there's an encoding error being thrown.
dart:core new _Uri
package:algolia/src/index_reference.dart 358:23 AlgoliaMultiIndexesReference._encodeMap
package:algolia/src/index_reference.dart 391:19 AlgoliaMultiIndexesReference.getObjects
test/algolia_test.dart 158:43 main.<fn>.<fn>
type 'List<String>' is not a subtype of type 'String'
It only happens for AlgoliaMultiIndexesReference. When we try doing the same for AlgoliaIndexReference it works without issues.
To Reproduce
One can reproduce the issue in tests by adding a list of facet filters:
Dart version: 2.18.6 Flutter version: 3.3.10 (stable)
Describe the bug When one sets a list of facet filters for a query to be performed as part of
getObjects()
insideAlgoliaMultiIndexesReference
there's an encoding error being thrown.It only happens for
AlgoliaMultiIndexesReference
. When we try doing the same forAlgoliaIndexReference
it works without issues.To Reproduce One can reproduce the issue in tests by adding a list of facet filters:
in the
Perform Multiple Queries
test like this:Expected behavior Encoding error should not happen inside
AlgoliaMultiIndexesReference
when the set facet filter for a query is aList<String>
.