DefaultFakeResolver

class DefaultFakeResolver(val types: List<CompiledNamedType>) : FakeResolver

Constructors

Link copied to clipboard
fun DefaultFakeResolver(types: List<CompiledNamedType>)

Functions

Link copied to clipboard
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:

Link copied to clipboard
open override fun resolveListSize(context: FakeResolverContext): Int

Resolves the size of a list. Note that lists might be nested. You can use context.path to get the current nesting depth

Link copied to clipboard
open override fun resolveMaybeNull(context: FakeResolverContext): Boolean
Link copied to clipboard
open override fun resolveTypename(context: FakeResolverContext): String

Properties

Link copied to clipboard
val types: List<CompiledNamedType>