Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mvelimir committed Jan 10, 2023
1 parent 9d32aa1 commit 5f7a9ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ object ElasticQuery {

def range(field: String): RangeQuery[Unbounded.type, Unbounded.type] = RangeQuery.empty(field)

def term[S, A: ElasticPrimitive](field: Selection[S, A], value: A): ElasticQuery[Term[A]] = TermQuery(field.toString, value)
def term[S, A: ElasticPrimitive](field: Selection[S, A], value: A): ElasticQuery[Term[A]] =
TermQuery(field.toString, value)

def term[A: ElasticPrimitive](field: String, value: A): ElasticQuery[Term[A]] = TermQuery(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ case object Root extends Selection[Any, Nothing]
final case class Field[From, To](parent: Selection[From, _], name: String) extends Selection[From, To]

object ElasticQueryAccessorBuilder extends AccessorBuilder {
override type Lens[_, From, To] = Selection[From, To]
override type Prism[_, From, To] = Unit
override type Traversal[From, To] = Unit
override type Lens[_, From, To] = Selection[From, To]
override type Prism[_, From, To] = Unit
override type Traversal[From, To] = Unit

override def makeLens[F, S, A](product: Schema.Record[S], term: Schema.Field[S, A]): Lens[F, S, A] = {
val label = Annotation.maybeName(term.annotations).getOrElse(term.name)
Expand Down

0 comments on commit 5f7a9ce

Please sign in to comment.