```ts SomeSchema.plugin(AutoIncrement, { id: '_id', // default: counter__hooks: (next) => ++next counter__hooks: (next: number) => { if (next > 100) return next + 3; if (next === 1024) return 1026; return next + 4; }, }); ```