Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5460

Update custom field type protocol documentation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.1.0, 8.0.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The documentation at https://www.mongodb.com/docs/mongoid/master/reference/fields/#custom-field-types should be extended to cover the changes made in Mongoid 8.

      Specifically:

      Whether mongoize, demongoize and evolve should be written to accept any values (yes, this is already mentioned).
      That evolve should pass through unconvertable values.
      That mongoize and demongoize should return nil for unconvertable values.
      That Mongoid will always call demongoize with values that were retrieved from the database (and hence are of a limited set of types) but applications may in theory call demongoize directly with arbitrary input.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: