Questions tagged [graphql]

Denotes questions about Magento GraphQL.

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

Magento 2.4.0 Send blank value of customer email ID. If email ID belongs to a specific domain

There are multiple APIs which will be sending customer email IDs. If I want to add some logic while sending a unique domain email ID in response. I would need to override multiple files and make the ...
0
votes
0answers
28 views

Magento 2 - How to get new and best sellers products data using product graphql?

I want new products and bestsellers product data in product graphql. and also product review and rating. Does anyone have an idea?
0
votes
2answers
40 views

In Magento2 graphql i want to add a field to the root query of the Magento GraphQL API called `isLoggedIn`. This should return `Boolean`

In Magento2 graphql i want to add a field to the root query of the Magento GraphQL API called isLoggedIn. This should return Boolean whether the customer is logged in or not.
0
votes
0answers
15 views

in Magento2 graphql, i want you to override the `label` field on `CartTaxItem` in the API to return the configured title of the tax rate

in Magento2 graphql, i want you to override the label field on CartTaxItem in the API to return the configured title of the tax rate instead of the tax identifier.
0
votes
0answers
16 views

Magento 2 graphql integration with Amazon Pay

I am trying to implement payment for Amazon Pay in Magento 2.4 using graphql. Magento documentation provides steps for Pay Pal (e.g. PayPal Express Checkout: https://devdocs.magento.com/guides/v2.4/...
0
votes
0answers
21 views

Magento2 Add to compare Api using graphql?

Magento2 - PWA. I am developing PWA in Magento2. In products I am not able to see Add to compare link. How can I create add to compare Graphql API & use it in PWA?
0
votes
0answers
21 views

How to get Magento 2 Customizable Options with GraphQL

How to get Magento 2 Customizable Options with REST API - similar to this, but how to get same result with GraphQL in Magento 2? This Magento 2 documentation doesn't tell anything about getting ...
0
votes
0answers
16 views

how to magento2 forgot password api in graphql?

<?php require_once('baseurl.php'); error_reporting(E_ALL ^ E_NOTICE); $userData = array("username" => "", "password" => ""); $ch = curl_init($baseUrl ...
0
votes
0answers
21 views

Get Attribute Customer in Magento2 with GraphQL

I created new attributes for customer but I want to insert them into a structure in graphql. Where there is an array called Garage with the new attributes. It is already being displayed normally in ...
0
votes
1answer
61 views

Using GraphQL query and filtering products by category_id, I get empty items array

I try to make a simple request using graphql and to get a response from my magento. I have a parent category named Products(id:"3"). In this one, there are 3 subcategories A(id:"5")...
1
vote
0answers
21 views

How to add custom attribtue in the ProductInterface of GraphQL response?

I have lots of custom attributes created for product and i want to include those in the ProductInterface response when called through GraphQl, is there any way for me to add those ? or do i need to ...
0
votes
1answer
17 views

Magento2 update email address vis rest API

Magento2 update Email Address using Rest API. How can I update email address of login customer via Rest API or Graphl
0
votes
1answer
117 views

How to add swatch data in Layered navigation aggregations in graphql?

How to add swatch data in Layered navigation aggregations in Graphql? Magento provides swatch data to filters [LayerFilter] but this is DEPRECATED so we use aggregations for the filter. Below query is ...
0
votes
1answer
28 views

Why I am getting GraphQL error: The billing address must contain either “customer_address_id” or “address”?

I am using magento graphQL api to build mobile app of magento site. In checkout process we have to set billing address. So I used one of mutation setBillingAddressOnCart to set billing address on ...
0
votes
0answers
33 views

Configurable product details + API (REST or GRAPHQL) + magento 2

How to change attribute selection wise product information like price and image for configurable product and combination attribute also using API. Get configurable product details using below API { ...
1
vote
1answer
31 views

why region_code not storing properly in magento 2.3.5?

I am using Magento GraphQL api in my project. To create a customer address I used createCustomerAddress mutation(createCustomerAddress). Below is the mutation that I have called to create the customer ...
0
votes
0answers
14 views

How to get customizable option values for not visible item configurable product in magento 2

via graphqlAPI i set Customizable options for Child product (Configurable items) - not visible item when i add configurable product to cart with customizable options - it's working but while ...
1
vote
0answers
16 views

Magento Checkout API Payment Methods

A lot of tutorials online show us what the flow is when ordering through the Magento2 Api. Unfortunately, alot of these tutorials only display "Cash on delivery". Magento DevDoc: https://...
0
votes
1answer
54 views

magento 2.3 is that posible to upload file in graphql mutation

i wondering is there any way to upload file in magento 2.3.5 via graphql mutation is there way suggest the way ? For REST API how we can upload file in magento 2.3?
0
votes
0answers
8 views

Render Graphql json array in pwa

I have a graphql query as follow: { customerPlacedOrder(customer_id: 1) { allOrderRecords { increment_id customer_name grand_total created_at shipping_method } ...
0
votes
1answer
30 views

Using curl with graphql issue

I made the schema.grapqhs with this content: type Query { quoteData ( id: Int @doc(description: "Id of the Quote Data") ): QuoteData @resolver(class: "Vendor\\Module\\...
0
votes
1answer
33 views

Magento 2 graphql send createEmptyCart and addSimpleProductsToCart in same request

Can I create a cart and add the products to cart in same request? Maybe using something like variables to pass by the cartId.
0
votes
1answer
77 views

Magento ver. 2.3.5-p1 Setup PWA store step by step Guide or documentation

I am new to PWA Studio. Can anyone guide or suggest any website or blog tutorial for step by step installation of PWA storefront? Does Magento PWA require to lean React and GraphQL? Which one is ...
0
votes
0answers
11 views

How we secure Magento GraphQL. Its working without Authorisation Token

How I can secure our Magento End Point Url. I'm able to create new category and customer without passing the authorisation token. Can we secure all GrphQl APIs?
1
vote
0answers
63 views

No product data returned for GraphQL query if stock not assigned

I have a Magento 2.3.5 site with multiple websites and multiple stock sources. Let's say I want to look up "mysku" in the UK store (store code: uk), which belongs to the UK website. Let's ...
1
vote
2answers
285 views

PWA Studio with custom extensions

First of all, sorry if the answer is obvious. I read the Devdocs, PWA-Studio Docs and some Tutorials, but somehow couldn't wrap my head around this. Does using a PWA with Magento2, for example Magento'...
1
vote
0answers
101 views

Magento 2 GrahQL Product Sorting does not work for the product query with category Filter

I have this graphQL query { products(filter: {category_id:{eq: "5"}, price: {from: "0", to: "999999"}}, pageSize: 10, currentPage: 1 sort: {position: DESC}) { ...
0
votes
1answer
27 views

Add product in cart according website by GraphQl

How can we add products in the cart according to the website? I have multiple websites in a single Magento installation. When I am adding a product by GraphQl then it's adding the product on the base ...
0
votes
1answer
70 views

How to send data to Third party graphql endpoint in magento2

I need to send some order information to monday.com using graphql when order place I want to pass the data to monday.com graphql API how can i send API request using graphql to monday.com UPDATE ...
0
votes
0answers
21 views

Basic Graphql Query throws error

I'm having a problem with the new 2.3.5 version but only on one of our websites. I've been using this query for months and it was working well, but since we updated to 2.3.5, it does not work anymore....
0
votes
0answers
67 views

Graphql don't work in magento 2, please help me

I create a module in magento 2 to test Graphql, but it's not work. my schema.graphqls #Coppy codilar Blog type Query{ codilarblog: Codilarblog @resolver(class : "Codilar\\GraphQlDemo\\Model\\...
0
votes
1answer
29 views

Is it possible to create plugin on non magento module?

Is it possible to create plugin on non magento module? for example for webonyx/graphql-php
0
votes
0answers
21 views

Graphql query filter by store

I'm trying to get the content of a cmsBlock for an identifier that exists for different stores with different values. But I don't find a way to filter a query to get the values of a cmsBlock (and any ...
0
votes
0answers
20 views

With GraphQL can I apply a filter in customAttributeMetadata?

I'm getting the values and labels for an specific attribute_code. query{ customAttributeMetadata( attributes: { attribute_code: "armazenamento" entity_type: "4" } ) { ...
0
votes
1answer
21 views

How can I get the product attributes with GraphQL without knowing them?

I have a shop with several products and each product have his own attributes. I'm trying to get those attribute values of each product with GraphQL but I don't know what are the attributes. I want to ...
0
votes
1answer
70 views

How can I get the attributeSet of product with his id with GraphQL?

I was using GraphQL to get the products of my shop and I can´t get his attributes. In my shop, there is several products with is unique attributeSet. I use the next query to get the attribute_set_id ...
3
votes
0answers
54 views

Change default price filter behaviour for pwa in magento 2.3.4 using graphql

I have a requirement in which i need to customise the default price filter in magento and change the behaviour so that the price ranges will be constant and need to show all the ranges after a price ...
2
votes
2answers
195 views

How to add new custom fields in existing GraphQL API (Query and Mutuation)?

I have basic knowledge about GraphQL. Now, I would like to convert my knowledge into action. For that, I want to know about few things like how can I add my custom field to any GraphQL Query and ...
0
votes
0answers
21 views

Is possible to Invoice, Ship, Cancel sales_order_item in other words Sub-Orders via REST or GraphQL APIs?

Wanted to know whether to was possible to update/change the sub-order wise status of sales_order_item via Restful or GraphQL APIs ? I could not find this in the swagger link posted here: https://...
0
votes
0answers
75 views

Can't find variants of configurable products using Graphql query

I'm using the Luma example Theme and Data Store. I'm trying the following query with Graphql: { products(filter: { name: { match: "Argus All-Weather Tank-L-Gray" } }) { items { id ...
0
votes
1answer
34 views

how to change the order of aggreation filter in magento 2 in di.xml

Magento/Cataloggraphql/etc/graphql/di.xml <type name="Magento\CatalogGraphQl\DataProvider\Product\LayeredNavigation\LayerBuilder"> <arguments> <argument name="...
0
votes
0answers
30 views

Magento 2.3.4 - webapi_rest generate token API call regenerates the form_key. Why?

Any idea why the form_key is regenerated when trying to generate a token through the integration/customer/token API call? Any HTTP form submit following a webapi_rest/graphql customer token API call ...
0
votes
2answers
346 views

How can i filter custom atributes in graphql?

I am building an e-commerce app to sell products. There is a section in my website with products on sale and I want to show in this section just the products that are on sale. But in the backend of my ...
0
votes
0answers
29 views

Categories in filters in graphql

How, do I get categories in my graphql result. My graphql query is query { products (filter: {category_url_path:{eq: "explore/sweet-escape" }}) { filters { name filter_items { ...
0
votes
1answer
66 views

How i can change the minimum and maximum value in this aggregations price magento 2 graphql

Request { products(filter: { category_id: { eq: "14" }}) { aggregations { label count attribute_code options { label value count } } ...
0
votes
0answers
101 views

GraphQl get Product collection

I have created Rest API for getting product collection for learning purpose , I wanted to convert it in GraphQl Api. My question is below code valid for GraphQl or there is something else? My rest APi ...
1
vote
0answers
32 views

How to get Aggregations in ProductCollection

I'm customizing graphql with query Product(). Instead of using searchCriteria to build searchRequest, i customed query graphql and used productCollection to build searchRequest. I see, the ...
1
vote
0answers
146 views

Magento 2: How to get related product custom option using graphQl?

I want to get related products with custom option data using GraphQl. I am using the below GraphQl query to get related product custom options data. can anyone help with this? { products(filter: {...
0
votes
0answers
99 views

how to pass data to before place order in magento 2 custom payment gateway graphql

I'm implementing https://github.com/razorpay/razorpay-magento/tree/2.9.2 payment gateway to Magento 2 graphql config.xml https://github.com/razorpay/razorpay-magento/blob/...
0
votes
0answers
69 views

GraphQL: Add Bundle to cart

I am attempting to add a bundle to a cart using GraphQL. The problem that I am facing is that my bundle has four items in it. Configurable Product (Frame) [Has a size and color option] Simple ...