-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/get response raw data #1160
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -7,17 +7,17 @@ To apply the mixin to your models and collections, use the `jsonapi` method. Eve | |||
|
|||
```typescript | |||
import { Collection, Model } from '@datx/core'; | |||
import { config, jsonapi } from '@datx/jsonapi'; | |||
import { config, jsonapiModel } from '@datx/jsonapi'; |
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.
What's the reasoning here to use jsonapiModel
and collection instead of the jsonapi
mixin? My thinking was to decrease the API surface and only have one function for everything.
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.
I would assume that we don't want to bundle parts we do not need (static vs runtime). For example, view is something that is not used that often but it is being part of every app that uses datx.
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.
@isBatak can you give your 2 cents on this one?
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.
What @kristian240 said :D
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.
@DarkoKukovec Are we okay with this then? If yes, can someone approve the PR? 😄
Please select all that apply:
Please describe the differences between the current and new behavior