Update data modeling relationship side field path to be an array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Data Modeling
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration I (Aug 11 - Aug 25), Iteration J (Aug 25 - Sept 8)
    • None
    • None
    • Developer Tools

      To prep for https://jira.mongodb.org/browse/COMPASS-9428 

      We need relationship sides to have arrays of field paths for when we represent compound relationships. Currently they're just field paths.

      This line: https://github.com/mongodb-js/compass/blob/8f183d06b3720df93dc42e562af1da48d5f1e32[…]ckages/compass-data-modeling/src/services/data-model-storage.ts

      Should instead be:

        fields: z.array(z.array(z.string())).nullable(),

      That will probably break folks existing relationships so better that we do this sooner. We can do a conversion of the current ones in the zod schema

            Assignee:
            Unassigned
            Reporter:
            Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: