-
Notifications
You must be signed in to change notification settings - Fork 16
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
Suggestion about Field.get Method #45
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, could you plz add a test to it?
Now, I wrote a test. But I couldn't run it locally. |
Could you show the error message? |
Tests updated. |
@@ -76,6 +95,8 @@ module.exports = (getAdapter, adapterType) => { | |||
const res = await svc.createEntity(ctx, { | |||
name: "John Doe", | |||
upperName: "Nothing", | |||
lowerName: "Nothing", | |||
lengthName: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are readonly fields, why do you send them in create?
Hi,
Another suggestion.
Would it be possible to enable insertion of a string pointing to a method for field.get as it exists in field.set?
Sometimes the logic for transforming the value can be extensive and using a method would be more organized.
Thanks,
Roni Cruz