This GraphQL query (channelsHavingTags) allows clients to pass in a list of Tag IDs, and be returned a list of channels that have one or more of those Tags, ordered by the greatest number of matching Tags, descending. In the example shown below, we pass in the Tag IDs for C# and JavaScript. The top result is DevChatter, which in the test database I am using, is tagged with both. Then we get Codebase Alpha (tagged with C#) and Noopkat (tagged with JavaScript):
This query is distinct from the current implementation of the channels query, where the channels must match ALL of the Tags passed in.
This GraphQL query (
channelsHavingTags
) allows clients to pass in a list of Tag IDs, and be returned a list of channels that have one or more of those Tags, ordered by the greatest number of matching Tags, descending. In the example shown below, we pass in the Tag IDs for C# and JavaScript. The top result isDevChatter
, which in the test database I am using, is tagged with both. Then we getCodebase Alpha
(tagged with C#) andNoopkat
(tagged with JavaScript):This query is distinct from the current implementation of the
channels
query, where the channels must match ALL of the Tags passed in.