Enum data type resolves aways as null
nicosefer opened this issue · comments
Hi Everyone!
We are trying to migrate from graphql-modules v0 to v1, but we are facing a weird behavior regarding the enum data types, since we are getting null
on each enum value field.
We suspect that the issue could be related with the "new" way of generating the schema with createSchemaForApollo. We tried to use the old way of calling .schema property but we got the context.ɵgetModuleContext is not a function
message.
Our dependency versions are:
"apollo-server": "^2.26.1",
"graphql": "^14.7.0",
"graphql-modules": "^2.1.1",
"reflect-metadata": "^0.1.13"
At the moment the apollo-server version can not be upgraded in this project :(
To Reproduce
Steps to reproduce the behavior:
https://stackblitz.com/edit/node-d8zzuk?file=tsconfig.json,package.json,src%2Findex.ts
Thanks in advance for your support
Note:
upgrading to "apollo-server": "^3.12.0",
the issue dissapear