-
Notifications
You must be signed in to change notification settings - Fork 122
Metadata enhancements #156
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
base: master
Are you sure you want to change the base?
Conversation
…ch naming in jsonapi specification. Signed-off-by: Clemens John <clemens.john@openitb.com>
…del() for retrieving it. Signed-off-by: Clemens John <clemens.john@openitb.com>
… and match naming in jsonapi specification." This reverts commit 2dbc30c.
…ase. Signed-off-by: Clemens John <clemens.john@openitb.com>
| .catch((res: any) => this.handleError(res)); | ||
| } | ||
|
|
||
| findOne<T extends JsonApiModel>( |
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.
This method is just the same as findRecord, except of one line. Could you make a private "internal" method instead which combines findOne and findRecord ?
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.
Do you mean something like in e971906?
Signed-off-by: Clemens John <clemens.john@openitb.com>
Signed-off-by: Clemens John <clemens.john@openitb.com>
This is a followup to the previous discussions at #26, GH-64 and #155. This adds a
findOnemethod as an alternative to thefindRecord-method. The new method returns a JsonApiQueryResponse instead of a JsonApiModel to be able to access metadata when fetching a single record.I tried to make the changes backwards compatible. Please check if this fits into the framework and if it does please merge :)