- Issue created by @danielwirz
When switching from Elasticsearch to a DB-based search server, the Media Library in the Blökkli editor appears empty. This is due to a GraphQL typing error caused by $query->execute()->getResultCount() returning a string instead of an integer.:
Drupal\paragraphs_blokkli_search\Model\MediaLibrarySearchResults::__construct(): Argument #2 ($total) must be of type int, string given, called in /modules/contrib/paragraphs_blokkli/modules/paragraphs_blokkli_search_api/src/Plugin/ParagraphsBlokkli/Search/SearchApiMediaLibrary.php on line 154
blokkli
search index to use a DB search server.Ensure the result count is correctly typecast to an integer before being returned to GraphQL.
Active
1.3
Code