You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
db schema prints a Mongo field that admits several BSON types as a comma-joined word #30470
What a user sees.prisma db schema on MongoDB shows each validator property with its BSON type. A property whose validator lists several types, such as a Json field, is printed with JavaScript's default array-to-string, for example meta: object,array,string,double,int,long,bool,null.
Where.packages/2-mongo-family/9-family/src/core/schema-to-view.ts, which renders String(propDef.bsonType).
Likely fix. Render a list as object | array | string | … (or with , ), and add a test for a list-typed property and for a nullable one (['null', …]).
Where it came from.#30439, which gave Json its list of BSON types.
Activity
fix(family-mongo): db schema prints a field with several BSON types a…