Skip to content

How to apply toString() to a large list of documents? #92

@vnugent

Description

@vnugent

I encounter of several instances where I need to convert an array of sub-documents with MUUID fields to string. If the list is small, I can loop through the array and call toUUID().toString() on each MUUID field. But when the array is large or nested, how would you apply toString() efficiently?

[{
  "name": "mary"
  "books": [
    {
      "id": "MUUID_type"
      "title": "War and Peace"
    }
  ]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions