-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
3
Problem Statement/Rationale
The "Include Driver Syntax" feature is not implemented by the BSON Transpiler for some languages. For example, C# does not have the driver syntax implementation. If it was enabled from the previous export for a different language, the transpiler tries to apply it to C# and throws the "Unable to export to sharp language: Generating driver syntax not implemented for current language" error.
We could improve this behavior by switching off driver syntax in such cases.
Steps to Reproduce
- Select an aggregation or query in a playground.
- Export selected code to Java
- Include driver syntax in the Result Pane
- Export the same code to C#
Expected Results
C# code displayed in the Result pane without the driver syntax.
Actual Results
The "Unable to export to sharp language: Generating driver syntax not implemented for current language" error is thrown.