Permalink
Browse files

[enhance] GridFS: added a function to access metada

  • Loading branch information...
1 parent 85d7bf8 commit 574aa32b8e33459d445f29b7d5e4d2700699ea45 @Aqua-Ye Aqua-Ye committed with BourgerieQuentin Dec 10, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/stdlib/apis/mongo/gridfs.opa
@@ -512,4 +512,13 @@ module GridFS{
{metadata: f(file.metadata), file : file.file}
}
+ /**
+ * Returns the metadata associated with a gridfs file.
+ * @param file A gridfs file
+ * @return The metadata of the file
+ */
+ function metadata(GridFS.file file){
+ file.metadata
+ }
+
}

0 comments on commit 574aa32

Please sign in to comment.