Questions tagged [magento-graphql]
The magento-graphql tag has no summary.
36 questions
0 votes
1 answer
31 views
GraphQl query showing 500 when post when blank query
In Magento 2 when post graphql with empty query it results into 500 error. It should not give 500 error and proper response. https://www.test.com/graphql { "errors": [ { "...
1 vote
1 answer
75 views
How to get product tier price using graphql magento2
I am performing a full text search to get the list of products. I need to get the tierprices of the products. But I am getting the following error. Customer with id "18" does not exist. I ...
0 votes
1 answer
358 views
Magento 2.4.7-p3 graphql get customer information
I need to understanding if this is a bug or expected behaviour I'm using Postman for my testings. To get customer data first need to generate token: mutation generateCustomerToken($email: String!, $...
0 votes
1 answer
186 views
How to get products results even its visibility is search in magento graphql
Based on visibility,filter the product in magento 2. The SKU 111324 having the visibility value is "Search". Using below graphQL query Query query { products( filter: { sku: { eq:...
0 votes
1 answer
45 views
Graphql module not working properly in magento 2
I created the module schema.graphqls #Magento Customer GraphQl Schema type Query { testcustomer: Testcustomer @resolver(class: "Graphql\\CrudOperations\\Model\\Resolver\\StudentList") @...
0 votes
2 answers
89 views
Graphql return null values
Schema.graphqls type Query { getGoogleMedia: [GoogleMedia] @resolver(class: "Test\\LocationData\\Model\\Resolver\\GoogleMediaResolver") } type GoogleMedia { image_view_all_link: ...
0 votes
2 answers
210 views
Magento 2 Plugin not working for class Magento\Quote\Model\Cart\Data\CartItemFactory
Does anyone know how to create a plugin for the class Magento\Quote\Model\Cart\Data\CartItemFactory method public function create(array $data): CartItem? I have tried creating before, after, and ...
0 votes
1 answer
170 views
How I can provide a Collection at the constructor of my Graphql Resolver?
In my module I defined a etc/schema.graphqls: type BlogPost { blog_post_id: ID title: String post: String } input BlogpostAttributeFilterInput { page: Int limit: Int } type Query ...