question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Throws `undefined` error when relationships are not included

See original GitHub issue

It’s legal in JSON-API to exclude relationships. In fact, relationships should only be included when explicitly requested using the include= querystring.

However, jsona throws an undefined error when a certain relationship is not included.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
olosegrescommented, Jul 18, 2017

@Redsandro Yeah, v1.0.10

0reactions
Redsandrocommented, Jul 17, 2017

👍

Patch version on npm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Returning null instead of "Call to undefined relationship" error ...
... string passed to the with() method, so it will load relation only upon it exists, and will not throw errors if something...
Read more >
modelClass on relationship is undefined · Issue #555 - GitHub
I'm not sure what I've done wrong, but the relationship just on UserProfile keeps throwing this error: ERROR: Error: UserProfile.
Read more >
Adding File Usage "File" relationship results in broken/missing ...
Today I finally made some progress. I'm now using drupal 8.0.2 and finally UI gives me this error: Relationship: Broken/missing handler The ...
Read more >
How to Deal with Optional Things and "Undefined" in TypeScript
type Foo = { bar: number; } const a: Foo = {}; // This is an error: // Property 'bar' is missing in...
Read more >
Couples Therapy
When two people embark on a committed relationship, they usually are ... But sometimes troubles can build and the solutions couples try may...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found