update additional field on user object via route handler

in my route handler, how can i update this additional value?

is there a method in the api, or do i just update the document by querying mongodb:

user: {
        additionalFields: {
           
            raw_data_mongo_ref_id: {
                type: "string",
                required: false,
                default: "null",
                input: false, // don't allow users to set this value
            },
        },
    },
Was this page helpful?