Questions tagged [graphql]

Denotes questions about Magento GraphQL.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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
14 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
21 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
25 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
14 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
12 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
14 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
26 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
33 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 ...
1
vote
2answers
57 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
15 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
16 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
24 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
29 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
1answer
97 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
17 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
0answers
39 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
47 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
20 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
66 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
55 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
43 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 ...
0
votes
1answer
186 views

Magento2 - How to place order using graphql?

I am following this tutorial to process cart / checkout for placing orders using graphql. Magento GraphQl Tutorial. And we have installed stripe on magento(backend). So we are facing issue while ...
0
votes
0answers
55 views

Add new ProductTierPrices field in GraphQl products query

I created a module to extend the behavior of tier prices, including a new field on the table, it is now saving to DB correctly. My question is: I want to implement GraphQl products query so that the ...
1
vote
1answer
39 views

Magento 2 setShippingMethodsOnCart GraphQL mutation

I am try to implement Paypal Express with PWA, I am refer https://devdocs.magento.com/guides/v2.3/graphql/payment-methods/payflow-express.html link to implement Graphql API. I have completed 1 to 6 ...
4
votes
1answer
53 views

Magento 2 graphql API

I am using createEmptyCart mutation for create customer Quote Id or Mast Id. createEmptyCart mutation write in vendor/magento/module-quote-graph-ql/etc/schema.graphqls file and use resolver file ...
0
votes
1answer
28 views

Magento2 : Product import using GraphQL

Magento Doesn't provide Product import using graphQL. can any one have idea about it and how to import product using GraphQL.?
1
vote
2answers
216 views

Magento 2 graphql get the cms block based on store

I am trying to get the cms block based on store, but it is alway returning the default store block content. The query I used : { cmsBlocks(identifiers: "login-data") { items { identifier ...
4
votes
2answers
218 views

Magento 2.3.3 Getting issue in custom module GraphQL

I would like to create custom GraphQL for a custom module. but I am facing an issue. see below GraphQL response. In the above image, you can see I am able to get the response of days and **details** ...
3
votes
1answer
241 views

GraphQL product quantity in stock

I'm trying to get the stock quantity of my products via graphql, here is my query, but the quantity is obviously not in the schema. Am I wrong? Is there a possibility to get it somehow? request: {...
0
votes
0answers
158 views

Error in Apollo Query to Magento GraphQL API in Next JS app

I'm putting together a Next JS (9.x) frontend pulling in data from the Magento GraphQL API (2.3.2) using Apollo. My queries are returning an error on initial navigation but, but will render the data ...
0
votes
1answer
329 views

add custom attribute to customer in graphql magento 2

my custom module schema.graphql input CustomerInput { sample_attribute: String @doc(description: "new attribute") } but not adding this attribute in customer mutation magento 2 graphql ...
0
votes
0answers
35 views

Deprecation of REST APIs?

We are exploring different approaches for Magento integration (V2.3.3) with a storefront hosted on a third party CMS. We've come across 2 different approaches for this; REST based APIs GraphQL As ...
2
votes
2answers
1k views

How to filter product collection with default graphql products query

I am using Magento 2 Graphql to get product collection based on category id. I want to apply filter by color, size, material etc. I have checked the graphql available filters and those are not ...
0
votes
0answers
77 views

How to add custom attribute to create customer mutation magento graphql

Hi I create a custom attribute in Magento backend for Customers sample_attribute How i can add this attribute to graphql query to create a customer account in Magento 2.3 i tried this answer Answer ...
1
vote
1answer
109 views

Call to a member function getPriceType() on null magento graphql - addtocart

I have a simple product with custom options while adding to cart i getting error add a simple product to cart mutation { addSimpleProductsToCart( input: { cart_id: "...
0
votes
0answers
19 views

magento graphql while adding product to cart problem with custom options [duplicate]

Request { products ( filter: { sku: { eq: "Product option values" } } pageSize: 3 currentPage:1 ) { total_count items { name sku ...
3
votes
0answers
74 views

Not able to access graphql api for magento (with XAMPP) on localhost

Am new to Magento. Am using magento 2.3.1 with XAMPP v3.2.3. Does the XAMPP exposes the graphql api by default on localhost or I need to setup separate server for it like Apollo? I'm trying to set ...
0
votes
1answer
281 views

magento 2 graphQL not loading mutation in custom module graphql doc

I created a custom module for mutation with table when I create mutation is not loading in graphql doc Type \"PracticeOutput\" not found in document.\n\nException #0 (GraphQL\\Error\\Error) ...
1
vote
0answers
12 views

Cache type to regenerate schema.graphqls files

after changing the schema in schema.graphqls file I always must clean the cache. It's take a while, so I'd like to know, what the cache type in magento is responsible for regenerating this files?
0
votes
2answers
133 views

How to get customer group id into magento2 graphql

How to get customer group id into graphql magento2 Note: Only in GraphQL
0
votes
1answer
41 views

how i can use graphql in magento 2.3 and i can setup to magento 2.3?

i want to know how i can use Graphql in magento 2.3 is there any good resource's to understand that. how i can set up to my magento 2.3 project another question is Vue storefront ...
1
vote
1answer
183 views

Magento 2 GraphQL Tutorial Collection

https://amasty.com/blog/magento-2-api-updates-graphql/ General overview about GraphQL https://larsroettig.dev/how-to-create-a-graph-ql-endpoint-for-magento-2-3 This Tutorial shows how to create an ...
2
votes
0answers
58 views

Magento 2: GraphQL V/S REST API [closed]

I am planning to build API's. Which is better GraphQl or REST API? How easy to customize either as per the developer perspective view? https://www.howtographql.com/basics/1-graphql-is-the-better-...
0
votes
1answer
108 views

How to get the media_url in custom GraphQl in Magento 2.3?

I have a custom module to update Faq of the website.question and answers can update from the back-end.Answer field is wysiwyg editor.Can upload image to the answer content. If i get the result using ...
0
votes
1answer
736 views

Create a custom graphql module with filter attributes magento 2

I need to get all attribute values of product based on the category id. I had implemented this logic in rest api but I couldn't find clear solution for graphql module. My schema.graphqls file is ...
1
vote
2answers
1k views

Magento 2 : How to create custom GraphQl to Access Customer Data?

How to create custom GraphQl to Access Customer Data?
2
votes
3answers
330 views

Magento2 : What is the use of schema.graphqls file in GraphQL

What is the use of schema.graphqls file? vendor/magento/module-catalog-graph-ql/etc/schema.graphqls
0
votes
0answers
69 views

Magento2 gatsby graphql passing variable issue

My gatsby-node.js file is below const path = require('path'); var webpack = require('webpack'); exports.createPages = ({ graphql, actions }) => { const { createPage } = actions; const ...
0
votes
0answers
156 views

Magento 2 GraphQL: Filter Products by custom attribute

I am using Magento 2.3.3 and GraphQL to get a list of products. I want to query products by a custom attribute that I created in the admin. Couldn't find in the documentation how to. It is possible.....