Taglet v0.6.0 Taglet.TagletQuery View Source

Allow to build essential ecto queries for taglet

All this functions only should be used from Taglet module

Link to this section Summary

Functions

Build the query to get all Tags of a tag_resource and context

Build the query to search tagged resources

Build the query to search tags in a specific context, struct or module

Link to this section Functions

Link to this function count_tagging_by_tag_id(tag_id) View Source
Link to this function get_tags_association(struct, tag_resource, context) View Source

Build the query to get all Tags of a tag_resource and context.

Link to this function search_tagged_with(query, tags, context, taggable_type) View Source

Build the query to search tagged resources

Link to this function search_tags(context, taggable_type, taggable_id \\ nil) View Source

Build the query to search tags in a specific context, struct or module