in package.json add an arguement --ext
"scripts":{ "start" : "nodemon src/index.js --ext js,graphql --exec babel-node", ....