async def _upload_to_mongodb(collection, jsonld):
document = {<EOL>'<STR_LIT:data>': jsonld<EOL>}<EOL>query = {<EOL>'<STR_LIT>': jsonld['<STR_LIT>']<EOL>}<EOL>await collection.update(query, document, upsert=True, multi=False)<EOL>
Upsert the technote resource into the projectmeta MongoDB collection.

    Parameters
    ----------
    collection : `motor.motor_asyncio.AsyncIOMotorCollection`
        The MongoDB collection.
    jsonld : `dict`
        The JSON-LD document that represents the document resource.