lundi 16 mars 2020

Laravel Lighthouse Unexpected

I am new to laravel lighthouse.

laravel/framework: "5.8."*

nuwave/lighthouse: "^4.10"

I am trying to test graphQL Query.

I am getting error

[{"errors":[{"message":"Syntax Error: Unexpected ","extensions":{"category":"graphql"},"locations":[{"line":1,"column":1}]}]}]

on http://localhost:8000/graphql

:graphql/schema.graphql

type Query {
  user: User
}

type User {
  id: ID!
  name: String!
  email: String!
}

:config/lighthouse.php

'schema' => [
    'register' => base_path('graphql/schema.graphql'),
],

:.env

LIGHTHOUSE_CACHE_ENABLE=false


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire