Tag: laravel
-
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…
-
Updating a single product in shopify app using Laravel and Graph QL
0 Im using Laravel to create a Shopify app. I have a mutation to create a product in shopify which works fine… private const CREATE_PRODUCTS_MUTATION = <<<‘QUERY’ mutation populateProduct($input: ProductInput!) { productCreate(input: $input) { product { id } } } QUERY; $response = $graph->query( [ "query" => self::CREATE_PRODUCTS_MUTATION, "variables" => [ "input" => [ "title"…
-
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…
-
“vagrant” will damage your computer. | macOS v12 (Monterey) #13132
17 Today morning suddenly I started getting this popup whenever I ran Vagrant up in my Mac. VirtualBox version 7.0.4 r154605 (Qt5.15.2). macOS v12 (Monterey), MacBook Pro (Retina, 15-inch, Mid 2015) Ubuntu LTS Settler Version Homestead Version Branch Status 20.04 11.x 12.x main Development/Unstable 20.04 11.x 12.x release Stable What’s wrong here? laravel laravel-5 laravel-8 homebrew…
-
Make a select with max and min passing condition to each of the two
6 When a post is accessed, I need, in addition to returning the information of this posts, to return the previous one if it exists and the next one. I would like to know if there is a way to select MAX(id) and MIN(id) in a single query/select, passing a condition for each one of…
-
How to query all the GraphQL type fields without writing a long query?
316 Assume you have a GraphQL type and it includes many fields. How to query all the fields without writing down a long query that includes the names of all the fields? For example, If I have these fields : public function fields() { return [ ‘id’ => [ ‘type’ => Type::nonNull(Type::string()), ‘description’ => ‘The…