Recommendation towards usage as a global data object #340
Unanswered
maxacarvalho
asked this question in
Q&A
Replies: 1 comment
-
You could either create a DataObject for the create action - or, I did not try this myself yet, make Any ideas on that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all, thank you for such amazing package!
I'm planning to use the package as a central data object solution, here's an example.
Let's think about a blog post data object.
That data object will be able to replace:
But then, I have some doubts.
When creating a post
Validation would fail since I don't have an
ID
nor aUUID
yet.When listing posts
To solve the situation above I could remove the
ID
andUUID
from the data object but that would cause the listing to fails since I want at least one of the identifiers.I wonder if you have any similar use case that you can share?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions