Strapi error for backend customization: Undefined attribute level operator id

Try achieving this using the entity service API. You may want to check this out: Entity Service API - Strapi Developer Docs