File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 8888
8989 await cursor .forEach ((b ) => {
9090 console .log (b);
91- });
91+ });
9292 ```
9393 </div >
9494
@@ -100,6 +100,14 @@ Here:
100100 ```
101101 </div >
102102 </TabItem >
103+ <TabItem value = " csharp" label = " C#" >
104+ <div >
105+ ``` csharp
106+ var projection = Builders <Book >.Projection .Include (b => b .Title ).Exclude (b => b .Id );
107+ booksCollection .Find (b => true ).Project <Book >(projection );
108+ ```
109+ </div >
110+ </TabItem >
103111 </Tabs >
104112</details >
105113
@@ -126,5 +134,13 @@ Here:
126134 ```
127135 </div >
128136 </TabItem >
137+ <TabItem value = " csharp" label = " C#" >
138+ <div >
139+ ``` csharp
140+ var projection = Builders <Book >.Projection .Exclude (b => b .Authors ).Exclude (b => b .Id );
141+ booksCollection .Find (b => true ).Project <Book >(projection );
142+ ```
143+ </div >
144+ </TabItem >
129145 </Tabs >
130146</details >
You can’t perform that action at this time.
0 commit comments