Graphql-tools node_modules/@graphql-tools/merge/index.cjs.js:785 for (const type of types) { #3044
-
Hello, I have this situation with apollo server and graphql-tools node_modules/@graphql-tools/merge/index.cjs.js:785 TypeError: types is not iterable I think definitely the problem is only with type definition, but It was working until A few days ago, and I cannot fixed this problem. I think is not a problem with inputs or type definitions. If somenone knows the solution or a temporary one. Of notice something is wrong and can workout. I really thank you. folder structure: graphql //auth.js type AuthUser {
} type Time {
input LoginUserInput {
`; enum.js module.exports ` enum AccountTypeEnum { `; schema.js const typeDefs = mergeTypeDefs(loadedTypes) export const schema = makeExecutableSchema({ index.js const server = new ApolloServer({ and also the package.json if there's something wrong or something that is better to omit or overwritten with this package. "dependencies": { Hope somebody help me to fix this error or somebody can fix it. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I saw you're mixing old |
Beta Was this translation helpful? Give feedback.
I saw you're mixing old
graphql-toolkit
and newgraphql-tools
packages. I recommend to follow the latest documentation and update your dependencies to the latest.