'Can someone help me in convert this MySql query to sequelize?

I am new to sequelize. I am not sure how to convert this MySql query so that I can use it in my node.js file.

MySql query:

SELECT Rtrim(Ltrim(childstatus)),TIMESTAMPDIFF(d,dob,now(3)) 
INTO @childstatus, @Ageday 
FROM childdetails where registno=@registno

I have sequelize model for childdetails. I am not sure how to structure this query.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source