ChainedEntityResolver

Entity resolver that delegates to multiple resolvers in order.

For each suggested entity:

  • Tries each resolver in order until one returns an ExistingEntity

  • If all resolvers return NewEntity, uses the first resolver's result

This allows chaining different resolution strategies, such as:

  • First checking an in-memory cache of recently seen entities

  • Then checking a database of known entities

  • Finally falling back to creating new entities

Constructors

Link copied to clipboard
constructor(resolvers: List<EntityResolver>)

Functions

Link copied to clipboard
open override fun resolve(suggestedEntities: SuggestedEntities, schema: <Error class: unknown class>): Resolutions<SuggestedEntityResolution>

For each of the given entities, resolve them to either an existing entity or a new entity.