public IResult <Brewery> ResolveBreweryByExternalId(IResolveFieldContext context)
 {
     return(_breweryConductor
            .FindAllQueryable(
                filter: BuildBreweryFilterByExternalId(context))
            .Include(
                nameof(Brewery.BreweryTags),
                context.ContainsField("tag_list"))
            .FirstOrDefault());
 }
        public IResult <IQueryable <Brewery> > ResolveBreweries(IResolveFieldContext context)
        {
            if (ValidationFails(context, out var errorResult))
            {
                return(errorResult);
            }

            return(_breweryConductor
                   .FindAllQueryable(
                       filter: BuildFilter(context),
                       orderBy: BuildOrderBy(context))
                   .Include(
                       nameof(Brewery.BreweryTags),
                       context.ContainsField("tag_list")));
        }