Learn-GraphQL icon indicating copy to clipboard operation
Learn-GraphQL copied to clipboard

Results 6 Learn-GraphQL issues
Sort by recently updated
recently updated
newest added

![Screen Shot 2023-05-05 at 8 54 46 PM](https://user-images.githubusercontent.com/73137934/236589640-dc60f18d-e4ba-4d3c-bfb5-6f42b6bccc0a.png) ![Screen Shot 2023-05-05 at 8 54 39 PM](https://user-images.githubusercontent.com/73137934/236589644-46119bd3-0588-4b07-8cd2-8b6095dde923.png) ![Screen Shot 2023-05-05 at 8 54 35 PM](https://user-images.githubusercontent.com/73137934/236589649-3883d54f-d4e1-46fc-b297-6b3007e081e2.png)

"express-graphql": "^0.12.0" does not work with the method expressGraphQL, `use const { graphqlHTTP } = require('express-graphql');` or `const expressGraphQL = require('express-graphql').graphqlHTTP` Refer [https://stackoverflow.com/questions/65517979/expressgraphql-is-not-a-function](url)

for some reason, constructor GraphQLNonNull doesn't work with graphql package version 16+ resulting in the error message: TypeError: Class constructor GraphQLNonNull cannot be invoked without 'new'

Hi, found a solution for this error when starting a server, so sharing: I just changed a line when requiring express-graphql to: ``` const expressGraphQL = require('express-graphql').graphqlHTTP ``` Now it...

**Before :** `const expressGraphQL = require("express-graphql");` --- **After :** `const { graphqlHTTP } = require("express-graphql");` --- ## This is the correct way, as described in the documentation. #### `const expressGraphQL`...