Skip to content

MongoDataProvider update method doesn't use global toDb method #314

Description

@itamardavidyan

Describe the bug
MongoDataProvider update method doesn't use global toDb method

To Reproduce
Steps to reproduce the behavior:

  1. Create new Entity with field like this:
@Fields.string({
  valueConverter: {
    fieldTypeInDb: 'dbid',
  },
})
institutionId!: string;
  1. Insert new document from this entity
  2. Update the dbid field
  3. The dbid field saved as string

Expected behavior
The field should stay ObjectId

Screenshots
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions