DevChatter / DevStreams

MIT License
32 stars 19 forks source link

Added GraphQL query channelsHavingTags #91

Closed essenbee closed 5 years ago

essenbee commented 5 years ago

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):

image

This query is distinct from the current implementation of the channels query, where the channels must match ALL of the Tags passed in.