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
I've tried serverpod out when it was fresh out, and back then I used generic types, it was just a simple example app, but now I'm implementing it in a project and I've run into some issues, so, I have this code to add a product to the database...I'm not sure if I'm doing the serialization properly, by using Protocol(), it's asking for a SerializationManager, and this is the protocol from src/generated, however it throws an error, I'm not sure what I'm doing wrong
PS: When I pass the product as a map to the addProduct endpoint, I don't give it any id, I intentionally exclude the id from it, as I didn't even add an id in the schema, but the Id is auto added, so I don't know if this contributes to the error in anyway
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've tried serverpod out when it was fresh out, and back then I used generic types, it was just a simple example app, but now I'm implementing it in a project and I've run into some issues, so, I have this code to add a product to the database...I'm not sure if I'm doing the serialization properly, by using
Protocol(), it's asking for aSerializationManager, and this is the protocol from src/generated, however it throws an error, I'm not sure what I'm doing wrongPS: When I pass the product as a map to the
addProductendpoint, I don't give it any id, I intentionally exclude the id from it, as I didn't even add an id in the schema, but the Id is auto added, so I don't know if this contributes to the error in anywaySERVER
CLIENT
PRODUCT SCHEMA
however, It throws whenever I hit the endpoint
STACKTRACE
All reactions