How do I get meteor shell output to be more verbose?

让人想犯罪 __ 提交于 2020-01-06 02:42:27

问题


I am using meteor shell, however, it seems to hide certain details, making it a pain to inspect.

> Meteor.users.find().fetch()
{
  "_id": "someidgoeshere",
  "emails": [ [Object] ],
  "profile": {},
  "services": [ [Object] ]
}

I looked into the source and found a REPL, checked the .help prompt. I looked in the documentation and didn't even find "shell" listed in the CLI.

Is there a way to run Meteor shell with some sort of verbose option, such that it displays ALL the json?


回答1:


Well, if you want to display all the data as JSON, there's a simple trick:

JSON.stringify(Meteor.users.find().fetch());

You will lose syntax colouration and functions though. I'm looking forward to a way to do it with the shell itself!



来源:https://stackoverflow.com/questions/30783918/how-do-i-get-meteor-shell-output-to-be-more-verbose

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!