-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model.create() does not have the option to set only overwrite
#87
Comments
@MickL Please add catModel.create(cat, { overwrite: true, return: "document" } ); |
Why? That is not a required value by Dynamoose, just in your interfaces 😕 Same problem for:
Also wants to have return:
|
@MickL please check this out from dynamoose which is exactly the same as here : get( key: Key, settings: ModelGetSettings & { return: 'document' }): Promise<Data>; The reason is that it is required by the Typescript type inference to correctly choose the right interface, so you will face the same problem if you use the type from dynamoose too. |
Hm then maybe that interface is wrong? I am not using |
@MickL yes it shouldn't be required, however it may due to some technical difficulty, you may ask @fishcharlie about this :) |
I opened an issue: dynamoose/dynamoose#912 |
catModel.create(cat, { overwrite: true } );
-> Complains that it requires returnThe text was updated successfully, but these errors were encountered: