|  | @@ -2,26 +2,23 @@ package graphql
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import (
 | 
	
		
			
				|  |  |  	"context"
 | 
	
		
			
				|  |  | +	"gshopper.com/gshopify/shop/db"
 | 
	
		
			
				|  |  |  	"gshopper.com/gshopify/shop/graphql/generated"
 | 
	
		
			
				|  |  |  )
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  type Resolver struct {
 | 
	
		
			
				|  |  | +	db db.Database
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  func New(ctx context.Context, debug bool) (*Resolver, error) {
 | 
	
		
			
				|  |  |  	r := Resolver{}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	return &r, nil
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -func (r *entityResolver) FindLocationByID(ctx context.Context, id string) (*generated.Location, error) {
 | 
	
		
			
				|  |  | -	panic("not implemented")
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +	var err error
 | 
	
		
			
				|  |  | +	if r.db, err = db.New(ctx, debug); err != nil {
 | 
	
		
			
				|  |  | +		return nil, err
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -func (r *queryResolver) Locations(ctx context.Context,
 | 
	
		
			
				|  |  | -	after *string, before *string, first *int, last *int, near *generated.GeoCoordinateInput, reverse *bool, sortKey *generated.LocationSortKeys,
 | 
	
		
			
				|  |  | -) (*generated.LocationConnection, error) {
 | 
	
		
			
				|  |  | -	panic("not implemented")
 | 
	
		
			
				|  |  | +	return &r, nil
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // Entity returns EntityResolver implementation.
 |