mongoc_gridfs_file_set_id man page

mongoc_gridfs_file_set_id ā€” mongoc_gridfs_file_set_id()

Synopsis

bool
mongoc_gridfs_file_set_id (mongoc_gridfs_file_t *file,
                           const bson_value_t *id,
                           bson_error_t error);

Parameters

Description

Sets the id of file to any BSON type.

If an error occurred, false is returned.

Returns

Returns true on success. If any arguments are invalid, returns false and logs an error.

Author

MongoDB, Inc

Info

Oct 12, 2017 1.8.1 MongoDB C Driver