KnownEntityResolver

class KnownEntityResolver(knownEntities: List<<Error class: unknown class>>, delegate: EntityResolver) : EntityResolver

Entity resolver decorator that checks a list of known entities before delegating to another resolver.

Useful for ensuring that specific entities (like the current user) are always matched correctly without requiring a search.

Parameters

knownEntities

Entities to check before searching

delegate

The resolver to delegate to if no known entity matches

Constructors

Link copied to clipboard
constructor(knownEntities: List<<Error class: unknown class>>, delegate: EntityResolver)

Types

Link copied to clipboard
object Companion

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.