import { type mongoose } from "https://deno.land/x/mongoose@7.8.2/types/expressions.d.ts";
const { IndexOfBytes } = mongoose.Expression;
Properties
$indexOfBytes: [StringExpression, StringExpression] | [StringExpression, StringExpression, NumberExpression] |
Searches a string for an occurrence of a substring and returns the UTF-8 byte index of the first occurrence. If the substring is not found, returns -1.