Skip to content
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

Util.inspect Depth not deep enough #578

Open
GeoFro opened this issue May 25, 2019 · 1 comment
Open

Util.inspect Depth not deep enough #578

GeoFro opened this issue May 25, 2019 · 1 comment

Comments

@GeoFro
Copy link

GeoFro commented May 25, 2019

I was testing the response bodies of my API and came across the problem that the more deeply nested objects were not being parsed.

I would get the following,

{ 
  id: 1,
  title: 'Tech Lead',
  createdAt: '2019-05-19T07:56:54.307Z',
  updatedAt: '2019-05-19T07:56:54.307Z',
  Attempts: [
    { 
  	id: 1,
        status: 'Pending',
        createdAt: '2019-05-19T07:56:54.307Z',
        updatedAt: '2019-05-19T07:56:54.307Z',
        UserId: 1,
        InterviewId: 1,
        User: [Object]
    }
  ] 
}

Note the User: [Object] which should be my full User object.

I've made changes to util.inspect so that all deeply nested objects will now show properly.
E.g, util.inspect(body, { depth: null });

See PR

@GeoFro
Copy link
Author

GeoFro commented Jul 30, 2019

bump

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

No branches or pull requests

1 participant