logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bool

Author

       MongoDB, Inc

Description

       Sets the id of file to any BSON type.

       If an error occurred, false is returned.

Parameters

file: A :symbol:` mongoc_gridfs_file_t <mongoc_gridfs_file_t>`.

       • id: A bson_value_t.

       • error: A bson_error_t.

Returns

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

Synopsis

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

See Also