message: docs(getClassForDocument): re-style and update to current implementation
diff: @@ -3,10 +3,22 @@ id: get-class-for-document
  title: 'getClassForDocument'
  ---
  -`getClassForDocument(doc: DocumentType<any>)` gets the Class used in the model creation.
  +**Typings:**
  +
  +```ts
  +function getClassForDocument(document: mongoose.Document): NewableFunction | undefined
  +```
  +
  +**Parameters:**
  +
  +| Name | Type | Description |
  +| :-------------------------------------------------------------- | :-----------------: | :--------------------------------- |
  +| `document` <span class="badge badge--secondary">Required</span> | `mongoose.Document` | The Document to get the Class from |
  +
  +`getClassForDocument` is used to get a Class from a document (which either has a `.typegooseName` function or property), this function is a more specific case of [`getClass`](./getClass.md).
  :::note
  -This only works if the class / model was created with Typegoose OR added with [`addModelToTypegoose`](api/functions/addModelToTypegoose.md).
  +This function only works if the schema has been created with [`buildSchema`](./buildSchema.md) or a property / function has been manually added.
  :::
  ## Example
  @@ -17,9 +29,9 @@ class Kitten {
  public name?: string;
  }
  -const model = getModelForClass(Kitten);
  +const KittenModel = getModelForClass(Kitten);
  -const doc = new model();
  +const doc = new KittenModel();
  getClassForDocument(doc) === Kitten; // should be "true"
  ```
  