adonis-graphql icon indicating copy to clipboard operation
adonis-graphql copied to clipboard

npm repo must be updated

Open annymosse opened this issue 5 years ago • 0 comments

hi @RomainLanz @targos @Xstoudi @andruu after i installed this provider i got a problem by the command

adonis make:gschema hello

it make a subfolder as the following: config/..ap/schema/Hello.graphql and if someone didnt use the ace command and create them manually it will produce an error as the following:

Error: Specified query type "Query" not found in document.

at /home/XXXXXX/Projects/tests/Adonis_GraphQL/start/routes.js(anonymous):19
  
/** @type {typeof import('@adonisjs/framework/src/Route/Manager')} */
const Route = use('Route')

const GraphQLServer = use('GraphQLServer') // <==== this is line 19
Route.post('/', (context) => {
  return GraphQLServer.handle(context)
})  

then when i fellowed the source i got the bug made by the config/graphql.js then i tried to fork and fix its without this bug and clean DeepinScreenshot_select-area_20190724183226

annymosse avatar Jul 24 '19 17:07 annymosse