i also wondering, why numeric keys are forbidden? ...
# mongodb
p
i also wondering, why numeric keys are forbidden? like
{"0": "foo", "1": "bar"}
? code/type generation works fine, TS types are correct, but the query itself doesn't work, it complains that a key should always start from the letter and can't start from the number.
j
That is unfortunately a current limitation in Prisma, all "fields" have to start with a alphabetic character I think.
There is not such a great reason for this, especially with embedded documents.
Do you experience this with an existing database with collections or with a new one?
Anyway, again an issue that describes your situation and use case would be helpful. I guess many other people are in the same boat, so I think we again would try to understand this and possibly try to remove this limitation. But we need the issue for that. Thanks!