How to reuse part of a graphql type?
Lets say I have the below schema:
When using graphql-upload/GraphQLUpload.mjs to upload image, an error occurs
import GraphQLUpload from ‘graphql-upload/GraphQLUpload.mjs’; import FileUpload from ‘graphql-upload/GraphQLUpload.mjs’ I’m trying to use graphql-upload/GraphQLUpload.mjs to upload photos using grapql, but why do I keep getting the following error? backend-1 | const GraphQLUpload_mjs_1 = require(“graphql-upload/GraphQLUpload.mjs”); backend-1 | ^ backend-1 | Error [ERR_REQUIRE_ESM]: require() of ES Module /ProjectJ-Backend/node_modules/graphql-upload/GraphQLUpload.mjs not supported. backend-1 | Instead change the require of /ProjectJ-Backend/node_modules/graphql-upload/GraphQLUpload.mjs […]