This is code section.. companyStatus: userCtx.user.category this section is generating error in the code. This field is actually enum type field in the schema.graphql Can anyone please help me how to write that section? companyName is working fine, but getting error from company Status.
ERROR : companyType has an invalid value, this is the error
var input = {
companyName: userCtx.user.company,
companyStatus: userCtx.user.status
createdAt: new Date().toISOString()
}