ActiveDocument

Terminology

In Fireactive, an ActiveDocument is an instance of an ActiveClass.

More concretely:

import { Schema, ActiveClass } from 'fireactive'
// define schema for ActiveClass
const animalSchema = {
name: Schema.string,
age: Schema.number
}
// create the ActiveClass, Animal
class Animal extends ActiveClass(animalSchema) {}
// instantiate an ActiveDocument from the ActiveClass
const mog = new Animal({ name: 'Mog', age: 4 })

In the above code, mog is an ActiveDocument, since it is an instance of Animal (which is an ActiveClass).