Skip to content

Commit 9fe4031

Browse files
committed
DOCSP-43495 updating image
1 parent a249a48 commit 9fe4031

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

source/copilot-schema.txt

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -45,49 +45,8 @@ collection, you can ask the |copilot| to show the schema of your collection:
4545

4646
GitHub Copilot uses the |copilot| to generate the following response:
4747

48-
.. code-block:: none
49-
:copyable: false
50-
51-
The schema for the sample_mflix.users collection, based on 100
52-
sampled documents, is as follows:
53-
54-
{
55-
"_id": {
56-
"type": "ObjectId",
57-
"probability": 1
58-
},
59-
"email": {
60-
"type": "String",
61-
"probability": 1
62-
},
63-
"name": {
64-
"type": "String",
65-
"probability": 1
66-
},
67-
"password": {
68-
"type": "String",
69-
"probability": 1
70-
},
71-
"preferences": {
72-
"type": ["Document", "Undefined"],
73-
"probability": 0.01
74-
}
75-
}
76-
77-
Key Points:
78-
79-
- Fields _id, email, name, and password appear in all documents with
80-
a probability of 1.
81-
- The preferences field is mostly undefined but occasionally contains
82-
a document (1% probability).
83-
84-
After Copilot generates the response, you can open the output in JSON format.
85-
8648
.. figure:: /images/copilot-schema.png
8749
:figwidth: 600px
88-
:alt: Screenshot of copilot providing a sample document from a collection.
89-
90-
91-
92-
50+
:alt: Screenshot of copilot generated a schema description
9351

52+
After Copilot generates the response, you can open the output in JSON format.

source/images/copilot-schema.png

112 KB
Loading

0 commit comments

Comments
 (0)