isRecordMatchingFilter throws on stale filter referencing deleted custom field

https://sonarly.com/issue/7898?type=bug

When a custom field is deleted from the schema, stale Apollo cache entries still contain filters referencing that field. SSE create events trigger optimistic cache updates that walk these stale queries, causing isRecordMatchingFilter to throw because the filter key no longer maps to any field in the metadata.
This commit is contained in:
Sonarly Claude Code
2026-03-02 17:40:00 +00:00
parent 02491571d7
commit 57b2cd3f8f
@@ -64,11 +64,6 @@ export class LogicFunctionDTO {
@Field()
sourceHandlerPath: string;
@IsString()
@IsOptional()
@Field({ nullable: true, deprecationReason: 'Use sourceHandlerPath instead' })
builtHandlerPath?: string;
@IsString()
@Field()
handlerName: string;