constructor (schema, ...args) {
    super()

    this.schema = schema
    /* istanbul ignore next */
    if (!schema) {
      throw new Error('A document needs a schema for reflection.')
    }

    // used internally
    this._ops = []

    this._initialize(...args)
  }
@param {DocumentSchema} schema The document schema.