johnpapa / ng-demos

variety of angular demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error When you add new record

eyadhodiani opened this issue · comments

Hello John,

I tried to add new record on "cc-bmean" app, I get the following error on the server:

"ObjectIds and Guids are the only autoGenerated key types that Breeze currently supports, not: undefined "

best regards,
Eyad

Can you give us more detail about your experience and any changes you made. How far did you go before you encountered this error? Did you touch any of the code?

Please try to add new speaker , just fill the required fields and save the data, I think the problem in metadata

id: { type: ID }, // ID in the same metadata defined as
var ID = DT.Int32;

if we changed to DT.MongoObjectId , everything works fine with some problems with retrieving data in getEntityByIdOrFromWip in "repository.abstract.js" because the MongoObjectId not numeric.