Generate a collection type from a schema of type MongoDBJSONSchema

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration X-Ray, Iteration Ylem
    • Not Needed
    • 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:
            Le Roux Bodenstein
            Reporter:
            Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: