© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Krzak

❔ MongoDB modified console output

I want one of the console app's functions to be displaying all documents from a collection but not in a "raw" way (quotation marks, brackets etc.) that simply iterating does. I'd like to do something similar to inerpolation so there's a message that I can insert values into or can define how the document's fields are displayed myself. I'm looking into cursors and projection but projection only "cuts out" what isn't needed, according to a query, the raw database "look" is still there. Is it even possible to do what I want with mongodb? Using
pretty()
pretty()
still leaves the brackets and quotations. Or maybe it's in "deserializing BSON territory"? It's my first time using any database.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Saving all previous console output
C#CC# / help
2y ago
List output with Console.Write
C#CC# / help
3y ago
Capturing process output via OutputDataReceived event
C#CC# / help
3y ago
✅ Outputting to debug console.
C#CC# / help
4mo ago