Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-2058

Generate a collection type from a schema of type MongoDBJSONSchema

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration X-Ray, Iteration Ylem
    • Developer Tools

      In the mongodb-ts-autocomplete package, add a function for converting a schema of type MongoDBJSONSchema into a typescript type as a string.

      ie. port toTypescriptTypeDefinition() from the PoC to work with MongoDBJSONSchema. Take databaseName, collectionName and schema as parameters.

      Preferentially use bsonType if it exists, falling back to using standard json-schema fields to determine the appropriate field types.

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: