-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(query-generation): support for the unwind stages INTELLIJ-195 #130
Conversation
is FromSchema -> registerConstant(ref.fieldName) | ||
is Inferred<S> -> registerConstant(ref.fieldName) | ||
is HasFieldReference.Computed<S> -> registerConstant(ref.fieldName) | ||
is FromSchema -> registerConstant(ref.displayName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to use displayName because fieldName removes any prefixed '$' in the field, and in unwind it's mandatory. Because displayName holds the information "as the user wrote it" makes sense to use it here. We were using fieldName because this part was done before displayName was introduced.
Coverage Report
|
🤖 Benchmark Comparison for
|
🤖 Benchmark Comparison for
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay 🚀
CHANGELOG.md
Outdated
@@ -5,6 +5,7 @@ MongoDB plugin for IntelliJ IDEA. | |||
## [Unreleased] | |||
|
|||
### Added | |||
* [INTELLIJ-195](https://jira.mongodb.org/browse/INTELLIJ-195) Add support for $unwind. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I did not notice this before but I guess we wanna be a little more precise about what support we added for this and the other item?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good, let me just make another commit making this more precise
Description
Checklist
Open Questions