Tag: laravel
-
Target class [App\GraphQl\Types\Admin\CitiesType] does not exist
0 I am using graphql in laravel project every thing work fine at localhost but when i deploy to server namecheap i faced this problime Target class [AppGraphQlTypesAdminCitiesType] does not exist. "exception": "IlluminateContractsContainerBindingResolutionException", I am using Postman for request to graphql this is my type <?php namespace AppGraphQlTypesAdmin; use AppModelsCities; use GraphQLTypeDefinitionType; use RebingGraphQLSupportType as…
-
“Extract” mutation name from an “OperationDefinitionNode” Object?
1 I am using the webonyx/graphql-php and Laravel. I have a single middleware that "catches" all graphql requests and I would like to apply some logic to filter some requests depending if the request is a mutation and which mutation it is. I "intersect" the graphql query (similar to this one) where the mutation storeCC…
-
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…
-
Laravel Rebing GraphQL – Pagination on sub relation
0 I’m trying to paginate the relations through a parent pivot. A user has topics and a topic can have multiple users. Multiple users can be the owner of a topic. A topic has messages. class Topic extends Model { //Casts Fillables etc. public function user(): BelongsToMany { return $this->belongsToMany(User::class, ‘topic_users’, ‘topic_uuid’, ‘user_uuid’) ->withPivot([ ‘uuid’,…
-
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 graphql lighthouse not working properly
0 I am using GraphQL Lighthouse for Laravel 10 project for the first time and I stuck in first phase of api. I exactly do what documentation said Link Here and YouTube tutorial Install lighthouse package composer require nuwave/lighthouse Publish the default schema php artisan vendor:publish –tag=lighthouse-schema IDE Support php artisan lighthouse:ide-helper Install GraphQL DevTools…
-
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:…
-
How to check active Shopify stores subscriptions using GraphQL and API?
0 I have a Shopify application that is installed on multiple Shopify stores, and I need to programmatically check which stores have an active subscription plan using the Shopify API and GraphQL. I want to perform the following tasks: Retrieve a list of all the Shopify stores that have installed my application. For each store…
-
How can I getting only the number id of the product in shopify using graphql and laravel app
0 This is my routes Route::get(‘/carts/{numericProductID}’, ‘AppHttpControllersShopifyController@showProductDetails’) ->name(‘showProductDetails’); This is the link to direct to other page to show/fetch the details of the selected product <a href="{{ route(‘showProductDetails’, [‘numericProductID’ => $product[‘node’][‘id’]]) }}">View Details</a> php html laravel graphql shopify Share Follow asked 33 mins ago Ruel A AlmoniaRuel A Almonia 111 bronze badge 1 What is…