TagsMultiTenant.TagsMultiTenantQuery (TagsMultiTenant v0.1.18)

Copy Markdown View Source

Allow to build essential ecto queries for tags_multi_tenant

All this functions only should be used from TagsMultiTenant module

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

Functions

count_tagging_by_tag_id(tag_id)

get_tags_association(struct, tag_resource, context)

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

search_tagged_with(query, tags, context, taggable_type)

Build the query to search tagged resources

search_tags(context, taggable_type, taggable_id \\ nil)

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