You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is assumed that if we pass a null or an empty array, then the tax query should not work in principle, but in this case it works and returns nothing, so it should not be, given that I cannot dynamically change the graphql query based on the number of elements in the array, so I would have to hack it. invert the query and base it on the "exclude" field
Предполагается что если мы передаем null или пустой массив то tax query не должен отрабатывать в принципе, но в этом случае он отрабатывает и ничего не возвращает, так не должно быть учитывая что я никак не могу динамически менять graphql запрос основываясь на кол-ве элементов в массиве, по этому что бы исправить это мне придется инвертировать запрос и основываться на поле "exclude"
Версия WPGraphQL: 2.0.0
Версия WPGraphQL Tax Query: 0.2.0
The text was updated successfully, but these errors were encountered:
Полазив в коде плагина я с удивлением обнаружил что в нём нет никакой проверки на то что "terms" может быть массивом и как то очищать/удалять его, есть ощущение что плагин не дописан до конца, или идея была в том что каждый сам по себя будет дорабатывать основываясь на фундаменте плагина?
After poking around in the plugin code, I was surprised to find that there is no check in it that "terms" can be an array and somehow clean/delete it, there is a feeling that the plugin is not fully written, or the idea was that everyone would refine themselves based on the foundation of the plugin?
It is assumed that if we pass a null or an empty array, then the tax query should not work in principle, but in this case it works and returns nothing, so it should not be, given that I cannot dynamically change the graphql query based on the number of elements in the array, so I would have to hack it. invert the query and base it on the "exclude" field
Предполагается что если мы передаем null или пустой массив то tax query не должен отрабатывать в принципе, но в этом случае он отрабатывает и ничего не возвращает, так не должно быть учитывая что я никак не могу динамически менять graphql запрос основываясь на кол-ве элементов в массиве, по этому что бы исправить это мне придется инвертировать запрос и основываться на поле "exclude"
Версия WPGraphQL: 2.0.0
Версия WPGraphQL Tax Query: 0.2.0
The text was updated successfully, but these errors were encountered: