public IResult <IQueryable <Brewery> > ResolveNearbyBreweries(IResolveConnectionContext context) { var latitude = GetLatitude(context); var longitude = GetLongitude(context); if (latitude.HasValue && longitude.HasValue) { var id = GetBreweryId(context); var within = context.GetArgument("within", 25); return(_breweryConductor .FindAllByLocation( latitude.Value, longitude.Value, within) .Filter(b => id == null || b.Id != id.Value) .Include( nameof(Brewery.BreweryTags), context.ContainsField("tag_list"))); } return(new Result <IQueryable <Brewery> >(Enumerable.Empty <Brewery>().AsQueryable())); }