-
Type:
Task
-
Resolution: Unresolved
-
Priority:
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.
- is depended on by
-
MONGOSH-2034 Create mongodb-ts-autocomplete package
-
- In Code Review
-