myesn

myEsn2E9

hi
github

Mongoose: Discriminator Pattern Query Considerations

Special note: If the discriminator mode is used, and then querying data with the most basic Schema, and the filtering conditions also include fields from subclasses, at this time, the fields from the subclasses will be excluded from the filtering conditions, meaning that the fields from the subclasses will not be included in the parent class.

The correct approach is to query with the corresponding Schema of the subclass.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.