{"action":"created","issue":{"url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/8","repository_url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal","labels_url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/8/comments","events_url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/8/events","html_url":"https://github.com/Juliana26/gp_trabalhofinal/issues/8","id":386279809,"node_id":"MDU6SXNzdWUzODYyNzk4MDk=","number":8,"title":"Erro ao consultar dados no banco","user":{"login":"Juliana26","id":19715383,"node_id":"MDQ6VXNlcjE5NzE1Mzgz","avatar_url":"https://avatars0.githubusercontent.com/u/19715383?v=4","gravatar_id":"","url":"https://api.github.com/users/Juliana26","html_url":"https://github.com/Juliana26","followers_url":"https://api.github.com/users/Juliana26/followers","following_url":"https://api.github.com/users/Juliana26/following{/other_user}","gists_url":"https://api.github.com/users/Juliana26/gists{/gist_id}","starred_url":"https://api.github.com/users/Juliana26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juliana26/subscriptions","organizations_url":"https://api.github.com/users/Juliana26/orgs","repos_url":"https://api.github.com/users/Juliana26/repos","events_url":"https://api.github.com/users/Juliana26/events{/privacy}","received_events_url":"https://api.github.com/users/Juliana26/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T17:25:27Z","updated_at":"2018-11-30T17:35:03Z","closed_at":null,"author_association":"OWNER","body":"Ao buscar por um Usuário o servidor retornou a seguinte mensagem:\r\nDeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect."},"comment":{"url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/comments/443279614","html_url":"https://github.com/Juliana26/gp_trabalhofinal/issues/8#issuecomment-443279614","issue_url":"https://api.github.com/repos/Juliana26/gp_trabalhofinal/issues/8","id":443279614,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzI3OTYxNA==","user":{"login":"Juliana26","id":19715383,"node_id":"MDQ6VXNlcjE5NzE1Mzgz","avatar_url":"https://avatars0.githubusercontent.com/u/19715383?v=4","gravatar_id":"","url":"https://api.github.com/users/Juliana26","html_url":"https://github.com/Juliana26","followers_url":"https://api.github.com/users/Juliana26/followers","following_url":"https://api.github.com/users/Juliana26/following{/other_user}","gists_url":"https://api.github.com/users/Juliana26/gists{/gist_id}","starred_url":"https://api.github.com/users/Juliana26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juliana26/subscriptions","organizations_url":"https://api.github.com/users/Juliana26/orgs","repos_url":"https://api.github.com/users/Juliana26/repos","events_url":"https://api.github.com/users/Juliana26/events{/privacy}","received_events_url":"https://api.github.com/users/Juliana26/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T17:35:03Z","updated_at":"2018-11-30T17:35:03Z","author_association":"OWNER","body":"Para solucionar esse problema, basta adicionar { useNewUrlParser: true } no momento da conexão com o banco. Exemplo: No código estava escrito:\r\nMongoClient.connect(url, function (err, db) { ... }\r\nO correto é\r\nMongoClient.connect(url, { useNewUrlParser: true }, function (err, db) { ... }"}}
{"actor":{"display_login":"Juliana26"}}