Tag: laravel-lighthouse
-
Laravel Lighthouse / Apollo Client React not sending auth cookies
0 I’m creating a Laravel / React SPA Application using Sanctum Stateful Auth. I’n my local enviroment it works just fine. Cookies are being sent and everything is ok, but when I pass the app to production ( I’m using a shared hosting ). The stateful auth breaks and doesn’t work. It allows me to…
-
can lighthouse Laravel GraphQL cache the APIs response?
0 Recently I have been working on GraphQL APIs. Due to the scalability of the project, I want to know if can i cache the response coming from apis. I know that we can use the query cache and schema cache facility from the lighthouse package. However, my concern is they cache the response during…
-
Laravel Lighthouse Graphiql Introspection query failing to fetch
0 I have a laravel graphql backend using Laravel Ligthouse, I’m using laravel Sanctum for authentication, the introspection query always fails to fetch with the following error on Graphiql: { "errors": [ { "message": "Failed to fetch", "stack": "TypeError: Failed to fetchn at https://unpkg.com/graphiql/graphiql.min.js:71200:22n at Generator.next (<anonymous>)n at https://unpkg.com/graphiql/graphiql.min.js:71119:67n at new Promise (<anonymous>)n at __webpack_modules__…/../graphiql-toolkit/esm/create-fetcher/lib.js.__awaiter…
-
@belongsToMany with @paginate
0 Simple models, we have a user and a user is part of topics. The linking is done through a pivot table. Both users and topics have the correct relationships. The query works. But. Now we need to add the pagination to it. type User { id: ID! uuid: String! email: String! api_token: String! devices:…
-
Errors Does not include extension.category
0 i use… laravel v10.8 php 8.1 lighthouse v6.10 apollo-client 3.7.16 in lighthouse v5.41 we have extension that include category i was handle errors with this option… but in lighthouse v6.10 i can not get errors category how can i get it? laravel error-handling graphql laravel-lighthouse Share Follow asked 5 mins ago ali asghar sadat…
-
error SATISFIABILITY_ERROR when check the schema
0 I tried to use Federation in my supergraph. I have 2 microservices, each one with the own schema: 1. first subgraph has: type User @key(fields: id) @guard { id: ID! firstname: String! } 2. second subgraph has: type GraphUnion { id: ID! user_id: Int text: String user: User! @hasOne } type User @extends @key(fields:…
-
lighthouse: I have problems with many-to-many connections
0 I’m trying to create a post and attach tags to it. I’m also trying to create a post and create a tag that will be associated with the post. I followed the documentation but in the end it doesn’t work. https://lighthouse-php.com/6/eloquent/nested-mutations.html#belongstomany I get an sql error when trying to create a Post and attach…
-
How to properly serve custom queries with @method directive in lighthouse-php?
1 I am building an inventory application with lighthouse and struggling to grasp the concept of serving custom queries with complex logic on demand. This is and approximate query that I am trying to create: { statsReport { dailyTotalSales dailyAverageSales dailTotalItemsSold newDailyCustomersCount etc. } } I was thinking of creating an Obejct that would have…