Skip to content

Commit

Permalink
Merge pull request #307 from sangria-graphql/revert-306-implicit-inte…
Browse files Browse the repository at this point in the history
…rface-lookup

Revert "Support implicit output lookups for interface types"
  • Loading branch information
OlegIlyenko committed Dec 3, 2017
2 parents d19075f + 865c3ff commit d452731
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ object GraphQLOutputTypeLookup extends GraphQLOutputTypeLookupLowPrio {
implicit def optionLookup[T : GraphQLOutputTypeLookup] = new GraphQLOutputTypeLookup[Option[T]] {
def graphqlType = OptionType(implicitly[GraphQLOutputTypeLookup[T]].graphqlType)
}

implicit def interfaceLookup[T](implicit int: InterfaceType[_, T]) = new GraphQLOutputTypeLookup[T] {
override def graphqlType = int
}
}

trait GraphQLOutputTypeLookupLowPrio {
Expand Down

0 comments on commit d452731

Please sign in to comment.