balderdashy / balderdashy/sails

inputs object change after add record

Open
#4,589 2 comments 0 reactions 0 assignees View on GitHub
more info please orm
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

```
inputs {
paymentInformation: {
type: "string",
},
defaultForm: {
type: "ref",
},
defaultPolicy: {
type: "ref",
},
}
```
insert record using create method
after inputs object change soomething like that
```
inputs {
paymentInformation: null,
createdAt: 2019-02-15T11:18:22.242Z,
updatedAt: 2019-02-15T11:18:22.242Z,

}
```
console inputs object
it will return inserted records

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown inputs object and the create method, then compare the object before and after insertion and inspect the create path involved. Done means the original inputs object remains unchanged after a record is created while the inserted record still contains the expected fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.