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

Author

       MongoDB, Inc

Description

       Checks  to  see  if  key  contains  an  element  named  key.  This also accepts "dotkey" notation such as
       "a.b.c.d".

Parameters

bson: A bson_t.

       • key: A string containing the name of the field to check for.

Returns

       true if key was found within bson; otherwise false.

Synopsis

          bool
          bson_has_field (const bson_t *bson, const char *key);

return

See Also