MongoDBGridFSBucket-getFileDocumentForStream.txt 857 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
===================================================
MongoDB\\GridFS\\Bucket::getFileDocumentForStream()
===================================================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: singlecol

Definition
----------

.. phpmethod:: MongoDB\\GridFS\\Bucket::getFileDocumentForStream()

   Gets the file document of the GridFS file associated with a stream.

   .. code-block:: php

      function getFileDocumentForStream($stream): object

24
   This method has the following parameters:
25 26 27

   .. include:: /includes/apiargs/MongoDBGridFSBucket-method-getFileDocumentForStream-param.rst

28 29
Return Values
-------------
30

31
The metadata document associated with the GridFS stream.
32 33 34

.. todo: add examples

35 36
See Also
--------
37

38
- :phpmethod:`MongoDB\\GridFS\\Bucket::getFileIdForStream()`