Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Jun 28, 2024
1 parent 116587a commit be78bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/src/test/kotlin/KotlinXSerializationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.TestInstance
import java.util.Date
import kotlin.test.assertIs
import kotlin.test.assertTrue

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
Expand Down
4 changes: 2 additions & 2 deletions source/fundamentals/data-formats/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ annotation, the driver uses a ``KSerializer`` implementation to handle
conversion of your types to and from BSON.

When you insert an instance of a polymorphic data class into MongoDB,
the driver serializes it with an additional field ``_t``, the
the driver adds the field ``_t``, the
discriminator field. The value of this field is the data class name.

Polymorphic Data Classes Example
Expand All @@ -274,7 +274,7 @@ with the annotations described in the
.. literalinclude:: /examples/generated/KotlinXSerializationTest.snippet.polymorphic-dataclasses.kt
:language: kotlin

Then, you can perform operations with data classes as normal. In the
Then, you can perform operations with data classes as usual. In the
following example, you parametrize the collection with the ``Person``
interface, but you can perform operations with the polymorphic classes
``Teacher`` and ``Student``. When you retrieve documents, the driver
Expand Down

0 comments on commit be78bce

Please sign in to comment.