Questions tagged [laravel-lighthouse]

Lighthouse is a PHP package that allows you to serve a GraphQL endpoint from your Laravel application.

Lighthouse is a PHP package that allows you to serve a GraphQL endpoint from your Laravel application. It greatly reduces the boilerplate required to create a schema, it integrates well with any Laravel project, and it's highly customizable giving you full control over your data.

276 questions
-1
votes
1 answer

Laravel Lighthouse GraphQL validation response code is 200 instead of 422

Why validation response code and unathuntication status code is 200(ok) instead of 422 and 401 ? how can i find request is failed to show error to users when all response codes are 200?
-1
votes
2 answers

Class 'Nuwave\Lighthouse\WhereConstraints\WhereConstraintsServiceProvider' not found

I just clone my project from Github, but then i run composer install I got error message In ProviderRepository.php line 208: Class 'Nuwave\Lighthouse\WhereConstraints\WhereConstraintsServiceProvider' not found "laravel/framework":…
-1
votes
1 answer

cors issue on server but not on localhost

I am working on a laravel 7 project with lighthouse-php as graphQL package. Everything works fine on localhost but on an Ubuntu 18.04 ec2 nginx server it is giving me CORS issue. Please Note :- 1) client and server both are on http. 2) my…
Dhaval Chheda
  • 4,637
  • 5
  • 24
  • 44
-1
votes
1 answer

GraphQL Where Select Sub Query

These day, i have studied GraphQL with Laravel framework, Lighthouse Library. I have tried to do kind of SELECT Query. As a result, I wonder GraphQL can select below SQL Query SELECT * FROM TABLE_A WHERE type=1 AND chart_id=(SELECT id FROM TABLE_B…
Jeongkuk Seo
  • 127
  • 2
  • 15
-2
votes
1 answer

How to load schema.graphql in laravel graphql-playground without using public folder and php artisan

I am developing a graphql based laravel app and using Lighthouse for the purpose. Now I have to access the playground through localhost/blog/graphql-playground (without using artisan or writing public every time), for this purpose I have copied…
-2
votes
1 answer

In lighthouse-php, How can i define a type for a model with a difftent name?

I am using lighthouse package for graphql in laravel, i need to declare a type for a model lets say "ClassA", but the type name must be TypeA, what is the best practice to do so?
isma0611
  • 63
  • 1
  • 4
1 2 3
18
19