function applyQueryMethods(model, methods) {
  for (const i in methods) {
    model.Query.prototype[i] = methods[i];
  }
}
Register custom query methods for this model

@param {Model} model
@param {Schema} schema
@api private