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

Infinite loading when aggregate $lookup is not used correctly #174

Open
daniil-konovalenko opened this issue May 29, 2018 · 0 comments
Open

Comments

@daniil-konovalenko
Copy link

I ran the following query:

db.Projects.aggregate([{
  $lookup: {
    from: 'ProjectTypes',
    localField: 'project_type_id',
    foreign_field: '_id',
    as: 'types'
  }
}])

Normally this query would result in an error:

Error: command failed: {
	"ok" : 0,
	"errmsg" : "unknown argument to $lookup: foreign_field",
	"code" : 9,
	"codeName" : "FailedToParse"
} : aggregate failed :

However, mongotron ingnored the error and just showed the usual loading spinner.

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