GraphQL Upload Express without apollo
Hi,
i'm trying to upload a cv to my database, but i'm not sure what i'm doing wrong.
I get the file from the front, and i'm able to print it.

> File { name: "file.pdf", lastModified: 1607640350803, webkitRelativePath: "", size: 44858

`  query: `
      mutation UploadCV($cv: GraphQLUpload){
       uploadCV(cv: {cv:$cv}) {
         _id
         filename
       }
      }
      `,
      variables: {
        cv: file,
      },`
Then i tried to follow the guideline but wasn't able to make everything work.

import express from "express";
import bodyParser from "body-parser";
import { graphqlHTTP } from "express-graphql";
import { graphqlUploadExpress } from "graphql-upload";
import mongoose from "mongoose";

import Schema from "./graphql/schema/index.js";
import rootResolver from "./graphql/resolvers/index.js";
import isAuth from "./middleware/is-auth.js";

/*Some code*/
const app = express();
app.use(
  "/graphql",
  graphqlUploadExpress({ maxFileSize: 1000000, maxFiles: 10 }),
  graphqlHTTP({
    schema: Schema,
    rootValue: rootResolver,
    graphiql: true,
  })
);`
`
and here in the schema, i couldn't put scalar Upload, i had an error.
But scalar GraphQLUpload seems to work fine.

`import { buildSchema } from "graphql";
import { GraphQLUpload } from "graphql-upload";

const Schema = buildSchema(`
scalar GraphQLUpload

type AuthData {
  userId: ID!
  token: String!
  tokenExpiration: Int!
}

type CV {
  _id: ID!
  filename: String!
  mimetype: String!
  path: String!
}


input CVInput {
  cv: String
}

type RootQuery {
    login(email:String!, password: String!): AuthData!
}

type RootMutation {
 
    uploadCV(cv: GraphQLUpload!) : CV
}
schema {
    query: RootQuery
    mutation: RootMutation
} 
`);

export default Schema;
`

and finally in the resolver i get undefined for the object
`const cvResolver = {
  uploadCV: async (parent, args) => {
    const { filename, mimetype, createReadStream } = await args;
    console.log("print file", filename, mimetype, parent);
    const stream = createReadStream();
    // Promisify the stream and store the file, then…
    return true;
  },
};`

Does anyone have an idea ? 
Thanks
