adonis-graphql
adonis-graphql copied to clipboard
npm repo must be updated
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