class_docstr: Fetch records from mongoDB
  
  The dataset aids in faster retrieval of data from MongoDB collections.
  
  To make a connection and read the documents from the mongo collections,
  the `tfio.experimental.mongodb.MongoDBIODataset` API can be used.
  
  Example:
  
  >>> URI = "mongodb://mongoadmin:default_password@localhost:27017"
  >>> DATABASE = "tfiodb"
  >>> COLLECTION = "test"
  >>> dataset = tfio.experimental.mongodb.MongoDBIODataset(
      uri=URI, database=DATABASE, collection=COLLECTION)
  
  Perform operations on the dataset as one would with any `tf.data.Dataset`
  >>> dataset = dataset.map(transform_func)
  >>> dataset = dataset.batch(batch_size)
  
  Assuming the user has already built a `tf.keras` model, the dataset can be directly
  passed for training purposes.
  
  >>> model.fit(dataset) # to train
  >>> model.predict(dataset) # to infer
class_docstr_tok: ["Fetch","records","from","mongoDB","The","dataset","aids","in","faster","retrieval","of","data","from","MongoDB","collections",".","To","make","a","connection","and","read","the","documents","from","the","mongo","collections",",","the","`","tfio.experimental.mongodb.MongoDBIODataset","`","API","can","be","used",".","Example",":",">",">",">","URI","=","``","mongodb",":","\/\/mongoadmin",":","default_password","@","localhost:27017","''",">",">",">","DATABASE","=","``","tfiodb","''",">",">",">","COLLECTION","=","``","test","''",">",">",">","dataset","=","tfio.experimental.mongodb.MongoDBIODataset","(","uri=URI",",","database=DATABASE",",","collection=COLLECTION",")","Perform","operations","on","the","dataset","as","one","would","with","any","`","tf.data.Dataset","`",">",">",">","dataset","=","dataset.map","(","transform_func",")",">",">",">","dataset","=","dataset.batch","(","batch_size",")","Assuming","the","user","has","already","built","a","`","tf.keras","`","model",",","the","dataset","can","be","directly","passed","for","training","purposes",".",">",">",">","model.fit","(","dataset",")","#","to","train",">",">",">","model.predict","(","dataset",")","#","to","infer"]
code: def _inputs(self):
      return []
  
file_path: io/tensorflow_io/python/experimental/mongodb_dataset_ops.py
imports: from urllib.parse import urlparse
  import tensorflow
  from tensorflow_io.python.ops import core_ops
  from tensorflow_io.python.experimental import serialization_ops
label_desc: Use image node_id 2 for calling the MongoDBIODataset obj's underlying member method code with example usage: obj._inputs() and returns: list