Mutation with list of strings Variable "$_v0_data" got invalid value Graphql Node.js Mutation with list of strings Variable "$_v0_data" got invalid value Graphql Node.js express express

Mutation with list of strings Variable "$_v0_data" got invalid value Graphql Node.js


The issue was in the resolver function apparently as I found here I have to assign the tags list within an object in the set argument like the code below

function addJob(parent, args, context, info) {    return context.db.mutation.createJob(        {            data: {                position: args.position,                componay: args.company,                date: args.date,                url: args.url,                description: args.description,                tags: { set: args.tags }            }        },        info    )}