Why schema_version' s type use string, not use int

in our project ,i use the moding of SchemaVersion, and my leader ask me a question about, why schema_version 's type use string ,not use int type.

Hi @zhao_bin welcome to the community!

why schema_version 's type use string ,not use int type.

Are you talking about the pattern in Model Data for Schema Versioning?

It’s just a pattern that you can implement and not a hard rule, so you can use any type that’s required by your use case (int, string, or even sub-document).

If this is not what you meant, could you elaborate further?

Best regards
Kevin

1 Like