// CreateConnection() returns grpc connection which user specified or newly connected and closing function
CreateConnection() returns grpc connection which user specified or newly connected and closing function
// CreateConnection () returns grpc connection which user specified or newly connected and closing function
func (x *graphql__resolver_UserProfiles) CreateConnection(ctx context.Context) (*grpc.ClientConn, func(), error) {
	if x.conn != nil {
		return x.conn, func() {}, nil
	}
	conn, err := grpc.DialContext(ctx, x.host, x.dialOptions...)
	if err != nil {
		return nil, nil, err
	}
	return conn, func() { conn.Close() }, nil
}
func ( x * graphql__resolver_UserProfiles ) CreateConnection ( ctx context . Context ) ( * grpc . ClientConn , func ( ) , error ) { if x . conn != nil { return x . conn , func ( ) { } , nil } conn , err := grpc . DialContext ( ctx , x . host , x . dialOptions ... ) if err != nil { return nil , nil , err } return conn , func ( ) { conn . Close ( ) } , nil }
CreateConnection() returns grpc connection which user specified or newly connected and closing function
CreateConnection () returns grpc connection which user specified or newly connected and closing function
// If x.conn is not nil, user injected their own connection // Otherwise, this handler opens connection with specified host