Skip to content

Conversation

brasiqui
Copy link

@brasiqui brasiqui commented May 7, 2023

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

Copy link
Member

@icebob icebob left a 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?

@brasiqui
Copy link
Author

Now, I wrote a test. But I couldn't run it locally.
NPM Install fails.

@icebob
Copy link
Member

icebob commented May 22, 2023

Could you show the error message?

@brasiqui
Copy link
Author

image

@brasiqui
Copy link
Author

Tests updated.

name: "John Doe",
upperName: "Nothing",
lowerName: "Nothing",
lengthName: 0,
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants