resolveLeaf

open override fun resolveLeaf(context: FakeResolverContext): Any

Resolves a leaf (scalar or enum) type. Note that because of list and not-nullable types, the type of context.mergedField is not always the leaf type. You can get the type of the leaf type with:

context.mergedField.type.rawType()

Return

a kotlin value representing the value at path context.path. Possible values include

  • Boolean

  • Int

  • Double

  • Strings

  • Custom scalar targets