Questions tagged [graphql]

Denotes questions about Magento GraphQL.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Adding extension attribute to customer in GraphQL Magento 2

In magento2 - I have created one extension attribute for customer using plugin, it's working fine for Rest API also. How can I include this extension attribute in GraphQL? In createCustomer mutation ...
0
votes
1answer
88 views

Magento 2.3.3 GraphQl Error after upgrade while Compilation

After upgrade from magento 2.3.2 to 2.3.3 I get this error while Compilation: Fatal error: Declaration of Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart::execute(Magento\Framework\GraphQl\...
0
votes
1answer
16 views

Getting this error when createCustomer mutation from graphql api (Some transactions have not been committed or rolled back)

I am getting this error when i try createCustomer mutation from graphql api searched for solution for this error but reached nothing i even tried to debug the code of module-customer-graph-ql in ...
1
vote
0answers
23 views

Getting Error “TypeError: Failed to fetch” While running graphql endpoint in ChromeiQL

I am running xampp server in my windows local. I setup magento 2.3.2 with sample data in it. When i try to run graphql in ChromeiQL , it throws error "TypeError: Failed to fetch". I have been using ...
0
votes
0answers
11 views

How to write grapgQl mutation to create and integrate the contact us page functionality in magento 2.3.2?

As same as the question, i want to create the mutation for contact us page and send the email via magento default contact us module without writing the custom email function in my resolver. How can i ...
0
votes
1answer
79 views

Magento 2.3.2 Error while Compilation

I am having this issue after updating Magento from 2.3 to 2.3.2 Fatal error: Declaration of Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart::execute(Magento\Framework\GraphQl\Query\...
0
votes
1answer
26 views

Magento 2 with gatsby grapgql for product view page?

I am using gatsby js and successfully got the product list in index.js But I need to show the detail of product on click. So I used the below code in gatsby-node.js file. const path = require('path')...
0
votes
1answer
39 views

Magento 2 with Gatsby and GraphQl issue

I am trying to integrate the magento2.3.2 with gatsby js and Graphql. For reference please check this link https://www.gatsbyjs.org/packages/gatsby-source-magento2/ I have integrated everything but I ...
0
votes
0answers
21 views

Magento 2 graphql file upload not working

I am using this schema to file upload: mutation{ uploadImg (file: Upload!): File @resolver(class: "\\Test\\Cgraphql\\Model\\Resolver\\UpImg") @doc(description:"Upload img") } But getting error: ...
0
votes
0answers
15 views

How to extend or override default graphql query, mutation or schema

I want to include some changes in default graphql response but no idea how can I do that and what is the right way to do that as there is not documentation available there. Do I have to create always ...
0
votes
0answers
32 views

Default graphql queries are not listing in ChromeiQL

Hello I am exploring Graphql currently and testing the magento's default graphql APIs but in ChromeiQL there is only two mutation queries are listing(createEmptyCart, placeholderMutation) and it is ...
0
votes
0answers
12 views

How to write a custom search using GraphQl in magento 2.3?

I Have News page like below. How to create the graphql shema to perform this. Here i want to load all the news first time, search by search text, archive, category. Any help to achieve this please?
0
votes
1answer
30 views

graphql failed Error In PWA-Venia Theme

Hi Guys I'm getting error while running yarn run build error and Screenshot is attached in below. Help will be appreciated, Thanks :) FetchError: request to http://magento2/graphql failed, reason: ...
0
votes
1answer
11 views

graphql filer options do not represent filters data

When I query the test site with chomeIQL extension using the query: query category($cat: String) { products(filter: {category_id: {eq: $cat}}) { filters { name filter_items { ...
0
votes
1answer
21 views

Magento 2.3.X: GraphQL does not reflect catalog rule discounts

I'm using Magento 2.3.2. I've successfully completed all cart-related tasks (create cart, add a product, select shipping& payment methods, and place the order) using GraphQL. GraphQL seems not ...
1
vote
1answer
78 views

Get product attribute value in GraphQL api

I'm having a problem with the GraphQL API for Magento 2. I cannot retrieve the attribute value of multiselect or dropdown attributes when I retrieve my products. In this example my attribute "...
0
votes
0answers
16 views

How to submit contact us data to Magento 2 contact us form action using graphqL?

How to submit contact us form data to Magento default functionalities using graphQl. I know to want to pass the form data using Mutation and doesn't have a clear idea to achieve the target. Please ...
0
votes
1answer
98 views

How to get custom product attributes values using graphQl queries in magento 2.3?

I want to get the values for custom product attribute in product details page. I am using below GrapgQl query to get the values. i am passing the name as the argument. How can i get the products ...
0
votes
1answer
61 views

Error in graphql schema running in magento 2 : Cannot query field \“wordoftheday\” on type \“Wordoftheday\”."?

I created a custom module with a custom table in magento 2.3.2 including grpahql schema. I want to get the data using graphql by passing an argument. I am getting the following error in Alatair ...
2
votes
3answers
148 views

Magento 2.3 GRAPHQL

How to run Api request in Magento's newly introduced feature Graphql. I have gone through some of the documents. In my local environemnt, So far I have installed ChromeiQL extension from chrome ...
0
votes
0answers
32 views

Magento 2 Get image with custom role/type

I'm trying extend Magento 2 GraphQL to return some images based on a custom role $productData = [ 'highlight_image_1' => $product->getSmallImage(), 'highlight_image_2' => $...
0
votes
1answer
123 views

How to remove GraphQL from Magento 2.3?

I'm not planning to use GraphQL in my Magento 2.3 and I would like to remove it at all for now, not just disable it. How could I do it?
1
vote
1answer
176 views

Pwa studio yarn build error

⚠ GraphQL Error (Code: 404): {"response":{"error":"\n\n404 Not Found\n\nNot Found\nThe requested URL /graphql was not found on this server.\n\nApache/2.4.33 (Win32) PHP/7.2.4 Server at 192.168....
1
vote
1answer
111 views

Magento 2.3 - Need detail about some newly introduced feature

I need to know about some of the newly introduced featured of Magento 2.3 GraphQL Declarative DB Schema Asynchronous and Bulk Web API There are few blogs information but not elaborating properly. I ...
3
votes
2answers
300 views

How to use customer token to access my account Query or Mutation in GraphQl

I am using magetno 2.3.x and I want to access my account queries provided by Magento_CustomerGraphQl module. I have installed ChromeiQl to execute GraphQl. I set Site Endpoint as per syntax provided ...
5
votes
2answers
1k views

Magento 2.3 use of `db_schema_whitelist.json` file in etc directory of each module

What is the use of db_schema_whitelist.json located in Magento Catalog etc directory? In Magento 2.3 version, I found db_schema_whitelist.json and db_schema.xml files, in the Magento_Catalog module. ...
0
votes
1answer
217 views

<magento_instance>/graphql not working on windows but works on linux machine

Officially Magento2.3 supports only these operating systems Linux distributions, such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar. This is my configuration Installed ...
0
votes
0answers
90 views

“Error filtering template” - no static blocks in description by graphql

I'm trying to use static blocks inside product descriptions with graphql. They works in standard template - content from block is visible on standard product page but I can't get the same using ...
5
votes
3answers
445 views

How can I test GraphQL of magento 2.3.0 in Wamp Server?

I have installed magento2.3.0 in localhost wamp server, It is working fine. When I'm trying to test GraphQL for PWA studio, I'm getting this error "TypeError: Failed to fetch".
7
votes
1answer
455 views

What is GraphQl in Magento2 and Why use?

What is GraphQl in Magento2? Why use GraphQl. I want to know detail about GraphQl.
2
votes
1answer
551 views

How to get order list of customer using graphql?

How to get order list of customer using graphql. I have below code to get order list using graphql but can't get it. schema.graphqls type Query { salesOrder ( customer_id: Int @doc(...
1
vote
2answers
455 views

“Unable to unserialize value” error on GraphQL query 2.3-develop branch

I'm trying out the GraphQL API on the 2.3-develop branch. On a clean Magento install, all queries return: "errors": [ { "debugMessage": "Unable to unserialize value.", ...