Hello!
When using a model function, typescript does not error when using non-existing attributes on the schema.
const Model = papr.model('collection', schema(
{
attributeExists: Types.objectId(),
}));
(async () => {
await Model.findOne({ attributeNotExists: new ObjectId() });
})();