-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathexport-to-language.txt
66 lines (43 loc) · 1.49 KB
/
export-to-language.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.. _vsce-export-to-language:
======================================
Export a Query or Pipeline to Language
======================================
.. meta::
:description: Export and translate MongoDB queries and aggregation pipelines to various programming languages using the MongoDB Extension for Github Copilot in Visual Studio Code.
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
You can export and translate query documents and aggregation pipelines
from a :ref:`playground <vsce-playgrounds>` into a programming language
using the :ref:`vsce-copilot`. You can export queries and pipelines to the
following languages:
- C#
- Go
- Java
- Node.js
- PHP
- Python
- Ruby
- Rust
.. note::
Prerequisites
-------------
You must enable the |copilot| to use the :guilabel:`Export to Language` feature.
You must open a playground that contains a query document or pipeline
you want to export.
The tutorials on this page use the default playground template.
.. note::
.. include:: /includes/playground-require-copilot.rst
To open a new playground containing the default template:
.. include:: /includes/steps/open-new-playground.rst
Export a Query Document
-----------------------
To export a query document:
.. include:: /includes/steps/export-to-language-query.rst
Export an Aggregation Pipeline
------------------------------
To export an aggregation pipeline:
.. include:: /includes/steps/export-to-language-pipeline.rst