View Source TagsMultiTenant.TagsMultiTenantQuery (TagsMultiTenant v0.1.15)

Allow to build essential ecto queries for tags_multi_tenant

All this functions only should be used from TagsMultiTenant 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