diff --git a/core/src/main/scala/caliban/schema/ArgBuilder.scala b/core/src/main/scala/caliban/schema/ArgBuilder.scala index d0f2c9e55..57f4c897d 100644 --- a/core/src/main/scala/caliban/schema/ArgBuilder.scala +++ b/core/src/main/scala/caliban/schema/ArgBuilder.scala @@ -134,8 +134,9 @@ object ArgBuilder { def dispatch[T](ctx: SealedTrait[ArgBuilder, T]): ArgBuilder[T] = input => { (input match { - case EnumValue(value) => Some(value) - case _ => None + case EnumValue(value) => Some(value) + case StringValue(value) => Some(value) + case _ => None }) match { case Some(value) => ctx.subtypes