The latest version is 0.13.2, but type-graphql is using "@types/graphql": "^0.12.7".
Could you upgrade to the latest? Also, unless there is a good reason, it would be great to keep the libraries up to date. In my projects I use https://www.npmjs.com/package/npm-check-updates.
I love the library so far, great job!
I've updated the deps a few days ago but sure, I will update again soon!
Thanks for reporting 馃槈
Thanks @19majkel94 for this library! Could this issue be the reason that I'm unable to assign the schema to express-graphql? Argument of type '{ schema: GraphQLSchema; graphiql: true; }' is not assignable to parameter of type 'Options'.
Type '{ schema: GraphQLSchema; graphiql: true; }' is not assignable to type 'Promise<OptionsData>'.
Property 'then' is missing in type '{ schema: GraphQLSchema; graphiql: true; }'..
I don't think so. Can you show the whole code for buildSchema and express-graphql?
BTW, with this type of question please go to gitter 馃槈
https://gitter.im/type-graphql/Lobby
this issue has some progress?
Yes, we have to wait for other packages:
https://github.com/apollographql/subscriptions-transport-ws/issues/398
In the meantime I recommend downgrading to:
{
"@types/graphql": "^0.12.7",
"@types/express-graphql": "^0.6.1",
"express-graphql": "^0.6.12",
"subscriptions-transport-ws": "^0.9.7"
}
Closing by b6131b6.
Most helpful comment
Thanks @19majkel94 for this library! Could this issue be the reason that I'm unable to assign the schema to express-graphql?
Argument of type '{ schema: GraphQLSchema; graphiql: true; }' is not assignable to parameter of type 'Options'. Type '{ schema: GraphQLSchema; graphiql: true; }' is not assignable to type 'Promise<OptionsData>'. Property 'then' is missing in type '{ schema: GraphQLSchema; graphiql: true; }'..