Questions tagged [graphql]
Denotes questions about Magento GraphQL.
234 questions
0 votes
1 answer
68 views
Not able to access graphql schema and resolver on localhost Xampp server
Please help me I am not able to access graphql schema and resolver from the custome module on localhost Xampp Server Here is my code /etc/graphql/schema.graphqls type Query { testHello: String @...
0 votes
0 answers
50 views
Shipping method issue with RestAPI
I'm facing an issue with my REST API. I've created an interface for the API and am using the same function in both my REST and GraphQL APIs, with identical parameters. The problem is: when I call the ...
1 vote
1 answer
76 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
2 answers
272 views
Magento2: Disable / Modify GraphQL Field Suggestion
In GraphQL, if we enter wrong field name in search, its will suggest the alternative fields in the response. It creates some security issues in production. So we plan to disable that feature. ...
0 votes
0 answers
47 views
GraphQL - Schema generated remove not null indication when in an array
In a custom module in etc/schema.graphqls, I declared my query : type Query { getAvailableCountries: [Country!] @resolver(class: "\\Vendor\\Module\\Model\\Resolver\\getAvailableCountries&...
0 votes
1 answer
83 views
Magento 2: updateCustomerV2 graphQl
when i am passing value to taxvat variable NULL i am getting syntax error and if i am paasing value to it, it working proper but my requirement is accept the null value as well when i am checking the ...
0 votes
1 answer
70 views
Listing categories through GraphQL doesn't work
When I try to retrieve a list of categories with the below GraphQL query, I only get one result instead of the expected 8. All the configuration options for the categories are default. Listing ...
1 vote
1 answer
457 views
str_replace(): Argument #3 ($subject) must be of type array|string, float given error after magento upgrade from 2.3.7 to 2.4.7
I have upgraded magento from 2.3.7 to 2.4.7. And one of the graphql query gives below error str_replace(): Argument #3 ($subject) must be of type array|string, float given at /vendor/magento/module-...
0 votes
1 answer
109 views
Product is visible when the visibility is set as 'catalog' while quering via graphQL in magento 2
For example, a product visibility has been saved as only "catalog", but the product still visibile while searching a product at frontend. (I have checked by searching the product with ...
0 votes
2 answers
90 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
244 views
Magento 2 : GraphQL - Generate Customer Token not working
I'm performing the below CURL request in Postman, but it's not working. curl --location 'http://gravity.freestylelibre.devops:81/graphql' \ --header 'Authorization: Bearer ...
1 vote
0 answers
273 views
Display SKU and Categories in live search popover
I have installed Adobe live search and it works fine. But i want to do some customization on the search popup. By default it gives the product image, Name and price only. I want to display the product ...
0 votes
1 answer
172 views
Venia pwa + magento 2
Can anyone explain how security works on graphql on venia pwa? I don't see any tokens or sessions or something like this at Venia. So any developer can create a graphql query and get all data from my ...
0 votes
0 answers
232 views
Custom Product Filter GraphQl Not working in magento 2.4
I want to add a stock filter for the product search GraphQl query. check below my code schema.graphqls input ProductAttributeFilterInput @doc(description: "Defines the filters"){ ...
1 vote
1 answer
497 views
How to get all the customer email using graphQl in magento2
I need all the customer email using graphQl in magento2. Who ever registered in magento those customers email addresses. I need to get from Api. Please help for this