Skip to content

COMPASS-3825: Export query viewer shows extra spec props #1831

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

Closed

Conversation

imlucas
Copy link
Contributor

@imlucas imlucas commented Oct 25, 2019

Instead of the query viewer containing only the query predicate:

{}

We now display a shell snippet that includes skip/limit/project set in the query bar, in addition, to the predicate:

db.pets.find(
  {name:'Arlo'},
  {name:1}
).limit(100).skip(0)

Unspecified spec props are not displayed. For example, if query and project are specified but not skip or limit, the resulting output is:

db.pets.find(
  {name:'Arlo'},
  {name:1}
)

Checklist

  • New tests and/or benchmarks are included

Motivation and Context

  • New feature

Dependents

See mongodb-js/compass-import-export#7

Types of changes

  • Patch (non-breaking change which fixes an issue)

@imlucas
Copy link
Contributor Author

imlucas commented Nov 5, 2019

Redundant of #1836 updating to a newer release of @mongodb-js/compass-import-export

@imlucas imlucas closed this Nov 5, 2019
@imlucas imlucas deleted the COMPASS-3825_query-viewer-shows-extra-spec-props branch November 5, 2019 14:37
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

Successfully merging this pull request may close these issues.

1 participant