MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / entityNotPopulated

Method entityNotPopulated

packages/core/src/errors.ts:196–198  ·  view source on GitHub ↗
(entity: AnyEntity, prop: string)

Source from the content-addressed store, hash-verified

194/** Error thrown when cursor-based pagination encounters missing or invalid cursor values. */
195export class CursorError<T extends AnyEntity = AnyEntity> extends ValidationError<T> {
196 static entityNotPopulated(entity: AnyEntity, prop: string): ValidationError {
197 return new CursorError(`Cannot create cursor, value for '${entity.constructor.name}.${prop}' is missing.`);
198 }
199
200 static missingValue(entityName: string, prop: string): ValidationError {
201 return new CursorError(`Invalid cursor condition, value for '${entityName}.${prop}' is missing.`);

Callers 1

processEntityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected