Skip to content

Commit cb7746a

Browse files
authored
Switchboard - a Go tool to query peers (MongoDB) (#3980)
Stacked on top of #3979 and #3978 Queries are Extended JSON, psql still treats those as strings and they can be turned into BSON by mongo driver. Has a help command that lists everything supported and links out to the docs.
1 parent 539becb commit cb7746a

File tree

10 files changed

+1612
-6
lines changed

10 files changed

+1612
-6
lines changed

flow/connectors/mongo/mongo.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ func NewMongoConnector(ctx context.Context, config *protos.MongoConfig) (*MongoC
112112
return mc, nil
113113
}
114114

115+
func (c *MongoConnector) Client() *mongo.Client {
116+
return c.client
117+
}
118+
115119
func (c *MongoConnector) Close() error {
116120
var errs []error
117121
if c != nil && c.client != nil {

0 commit comments

Comments
 (0)