{"record":{"id":"9320cc9c29fac773","repo":"toeverything/AFFiNE","slug":"unsupported-property-type-type","errorCode":null,"errorMessage":"Unsupported property type: ${type}","messagePattern":"Unsupported property type: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/frontend/core/src/modules/collection-rules/impls/filters/property.ts","lineNumber":28,"sourceCode":"    private readonly workspacePropertyService: WorkspacePropertyService\n  ) {\n    super();\n  }\n\n  filter$(params: FilterParams): Observable<Set<string>> {\n    const property$ = this.workspacePropertyService.propertyInfo$(params.key);\n\n    return property$.pipe(\n      switchMap(property => {\n        if (!property) {\n          throw new Error('Unknown property');\n        }\n        const type = property.type;\n        const provider = this.framework.getOptional(\n          FilterProvider('property:' + type)\n        );\n        if (!provider) {\n          throw new Error(`Unsupported property type: ${type}`);\n        }\n        return provider.filter$(params);\n      })\n    );\n  }\n}\n","sourceCodeStart":10,"sourceCodeEnd":35,"githubUrl":"https://github.com/toeverything/AFFiNE/blob/b4c8548c09da21b2898443559a5b846f0ccf5dd8/packages/frontend/core/src/modules/collection-rules/impls/filters/property.ts#L10-L35","documentation":"PropertyFilterProvider.filter$ throws when no FilterProvider is registered for the property's type ('property:<type>'), meaning the property type has no filter implementation (e.g. an exotic or newly added type).","triggerScenarios":"Thrown in the property filter dispatcher when no filter provider is registered for the property's type.","commonSituations":"Occurs when filtering by a workspace property whose type has no registered filter provider (new or custom property type); use a supported property type or update the app.","solutions":["Use a property type supported by the filter system.","Add a filter implementation for this property type."],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b4c8548c09da21b2898443559a5b846f0ccf5dd8","analyzedAt":"2026-08-18T21:16:52.546Z","contentChangedAt":"2026-08-18T21:16:52.546Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}