Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [graphql]

GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data. GraphQL was developed internally by Facebook. All questions related to GraphQL in Sitecore environment, should consider this tag.

Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

GraphQL Integrated not functioning correctly on CD server, working on CM

I'm having a problem on our site setup with Sitecore 10.2, Sitecore Headless Services 19.0 and SXA. GraphQL integrated isn't returning data correctly on our CD site, it is only working properly on the ...
user avatar
  • 113
2 votes
1 answer
60 views

'jss bootstrap' causes JavaScript heap out of memory error on graphql-let step

I have the Nextjs sample app running in connected mode to my existing Sitecore v10.2 implementation using JSS v19. It's all working correctly - I'm able to create new components and edit them in the ...
user avatar
1 vote
1 answer
79 views

Graph QL Search Result Computed Field

I have started to look at using Graph QL for search using the endpoint that comes out the box with Sitecore 10.1. I've read that the results are based on an item but had lazy loading eg. You have ...
user avatar
0 votes
2 answers
58 views

Sitecore GraphQL query - custom image prefix

Currently I have a GrahpQL query with bunch of images returning src as "/-/media" query: field(name:"Image"){ ...on ImageField{src} } Result: "Image": { "...
user avatar
  • 57
2 votes
0 answers
68 views

Extend GraphQL schema for custom field

I'm working on a 10.2 solution with JSS & NextJS using the GraphQL (edge) endpoint. I already noticed this endpoint is sometimes quite different compared to others and now I would like to extend ...
user avatar
  • 19.1k
0 votes
0 answers
59 views

Skip or exclude standard fields from GraphQL query results

Is there a way to exclude or skip standard fields from GraphQL query results. I'm sure this has been asked before but I couldn't find any helpful information.
user avatar
1 vote
1 answer
86 views

How to get the modified date and time for item versions in Sitecore via Graphql query

I need the query to get date modified on item versions for an item. https://scnew9.3cm.dev.local//sitecore/api/graph/items/master/ui?sc_apikey={api-key}&query=query%0A%7B%0A%20%20item(path%3A%20%...
user avatar
  • 317
1 vote
1 answer
39 views

GraphQL include multiple templates

How to include multiple templates in GraphQL? When I give something like below doesn't work. children(includeTemplateIDs: "{614C6C64-AD35-440E-9668-DF39D8A18CCG},{B094FD0E-D349-46C0-B829-...
user avatar
  • 856
0 votes
0 answers
20 views

How to write and test Sitecore GraphQL Subscriptions Query?

I am trying to write Sitecore Subscription based GraphQL query according to mentioned at https://doc.sitecore.com/en/developers/101/sitecore-experience-manager/the-graphql-content-schema.html#...
user avatar
1 vote
1 answer
47 views

Can we invoke Sitecore GraphQL as API using Postman

We have a requirement to get Sitecore items as invokable API using postman. Now postman is started supporting GraphQL. But when we try to invoke the Sitecore GraphQL I'm getting the error: URL: https:...
user avatar
0 votes
1 answer
26 views

FieldEquals does not return results for certain fields

We have cases wherein Sitecore GraphQL - FieldEquals() method does not return results for certain fields.
user avatar
3 votes
1 answer
61 views

Fields "children" conflict because they have different arguments

When trying to access the children of the different templates at the same level. We will be getting this error Fields "children" conflict because they have different arguments. Use different ...
user avatar
1 vote
1 answer
47 views

How to apply a greater/less than DateTime query in Sitecore using the `IQueryable<ContentSearchResult>` Linq?

How do you apply a DateTime field comparison in Sitecore using the Sitecore.ContentSearch SDK? The ContentSearchResult[string key] function always returns a string which cannot be cast into a DateTime ...
user avatar
2 votes
1 answer
119 views

What built-in/standard fields are available on the `search` GraphQL query?

I am trying to build a query that returns all items of a specific template, but can't seem to figure out if there's a "template" field available on the search query for GraphQL. Where can I ...
user avatar
  • 5,065
0 votes
1 answer
132 views

Getting "Authentication required" error when attempting to use systemService with Sitecore GraphQL

I'm trying to use the example /sitecore/api/graph/items/master endpoint for Sitecore GraphQL, which uses the systemService security configuration. However when I visit /sitecore/api/graph/items/master/...
user avatar
4 votes
2 answers
202 views

Create / Update / Delete items in Sitecore via GraphQL

The Sitecore Headless GraphQL documentation has some good examples for querying data. However I don't see any for mutations such as updating an item's fields, creating new items, or deleting items. As ...
user avatar
  • 4,745
2 votes
1 answer
73 views

Sitecore.ContentSearch.Linq is adding backslash to all space characters in search query

Whenever I query using the Like query the Sitecore generated Solr query escapes the space characters. Here is an example: queryable = queryable.Where(result => result["...
user avatar
0 votes
1 answer
112 views

Get all content items with presentation from GraphQL Content Search API

Is there a way to get all content items with configured layout using GraphQL Content Search API? I noticed, type children(requirePresentation: true) consists of an argument for requirePresentation to ...
user avatar
  • 135
2 votes
2 answers
518 views

GraphQL error: Query is too complex to execute

I am using JSS with Sitecore 10, and using the GraphQL search query, but I got this error after deploying to Sitecore: ERROR Error: GraphQL error: Query is too complex to execute. The field with the ...
user avatar
2 votes
1 answer
147 views

Skip standard fields in GraphQL query results without strongly-typed items

Is there an easy way to return all fields, while skipping standard Sitecore fields in GraphQL query results without strongly-typed items? I know that I can use fields(ownFields:true), but it will ...
user avatar
  • 596
1 vote
0 answers
121 views

Make sure the GraphQL service is installed and available (Sitecore 10 CLI) [duplicate]

When I try to use one of these commands dotnet sitecore ser push dotnet sitecore ser pull dotnet sitecore ser publish I got this error Make sure the GraphQL service is installed and available I ...
user avatar
1 vote
0 answers
44 views

Is there a change in GraphQL Schema between JSS version 11 and 14?

I am currently using sitecore 9.0.2 and have installed JSS to query the data using graphQL queries. I use below features of JSS: Querying data using http://sitecore.local/sitecore/api/graph/items/...
user avatar
-1 votes
1 answer
47 views

Does installing JSS package on sitecore modify database schema

I am planning to install JSS package on my sitecore instance to use GraphQL APIs. I want to know wether installing JSS package change/alter my database schema or solr indexes. In case I want to ...
user avatar
2 votes
2 answers
179 views

How to query Specialized TreeList using GraphQL

I have an item in sitecore which has a field with Specialized Treelist selection. I want to query this field using GraphQL query. Query: { item(path: "{98414240-69F7-4768-9B22-FE8EF17BE984}&...
user avatar
0 votes
2 answers
284 views

Image not working when fetching it with GraphQL in connected mode

This is on sitecore 10 / jss 14.0.1 I'm using JSS in connected mode (jss start:connected) since I will be fetching data with GraphQL. In my graphQL I fetch an image using this code: item(path: $item)...
user avatar
  • 409
3 votes
5 answers
1k views

Error message "Make sure the GraphQL service is installed and available"

Installed fresh Sitecore 10 and trying to use Sitecore CLI combined with native Sitecore Content Serialization. When executing next command dotnet sitecore ser pull I get an error message Make sure ...
user avatar
2 votes
1 answer
92 views

How do I query GraphQL using SPE?

How do I leverage SPE to query Solr via GraphQL?
user avatar
  • 500
1 vote
1 answer
183 views

How to pass a variable to search context?

I have created a SearchContext, defined query, provider etc. I have a variable to pass so can get result depending on what is being passed. Now, how do I pass this $query variable (which will be a ...
user avatar
  • 77
2 votes
1 answer
116 views

SitecoreJSS DateField is not able to format date coming from GraphQl query

I'm getting a Date from GraphQl query. When I get the result, it is coming as 20200415T123050Z. If I try to format using <DateField field={item.publishDate} render={(date) => date....
user avatar
  • 77
1 vote
2 answers
390 views

GraphQL query to search for pages based on template

The following GraphQL query returns items based on the Page template: search(keyword: "Dream", first: 10, language: "en", fieldsEqual: [{name:"_templatename&...
user avatar
2 votes
2 answers
522 views

Custom response for field and value from GraphQL query

While executing below GraphQL query using Sitecore Experience Graph Browser { item(path:"/sitecore/content/home") { name fields { name value } } } the response is as ...
user avatar
4 votes
1 answer
881 views

Cannot query field \"search\" on type \"Query\"

My question is based on already asked question and can be found here Sitecore Filtering by Field Value on Query of GraphQL This question is marked as answered by @jan-bluemink but I am facing the ...
user avatar
4 votes
1 answer
715 views

Integrated GraphQL is not working correctly with JSS with SXA

I've been struggling for a few days to get JSS Integrated GraphQL running on an existing SXA project. To rule out any issues being introduced by this project, I decided to go right back to square one, ...
user avatar
  • 43
3 votes
2 answers
350 views

Integrated GraphQL is not executed in Experience Editor

We use Sitecore 9.2, SXA 1.9 + JSS 12.0. As for the JSS, we are using Sitecore First approach. Some JSON renderings have integrated GraphQL queries. The Jss site was created trough JSS Tenant/JSS ...
user avatar
0 votes
1 answer
316 views

Manage security access for items with GraphQL

We noticed that there is no limitation on what data can be queried, all the data in GraphQL can be retrieved within the Sitecore instance. Any GraphQL request with the correct API Key can retrieve ...
user avatar
1 vote
1 answer
273 views

Get the item from a ReferenceField type in Sitecore JSS based on Langauge version

I am working on a multi-lingual site where the data source has multiple language versions. I want to retrieve the items of multilist based on the language parameter passed. Sitecore GraphQL query: {...
user avatar
0 votes
0 answers
177 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
user avatar
2 votes
1 answer
196 views

Can you resolve a droplink to an item within a GraphQL?

I have a template with a droplink "productarea". When I use a GraphQL to fetch this item, the value of the "productarea" is a GUID. This guid points to an item in the sitecore tree, and I need the ...
user avatar
  • 409
3 votes
1 answer
145 views

Sitecore graphql gui does not work over https

The sitecore graphql gui uses websockets to communicate with the server. We have a site that is running under https, but it seems that the gui frontend always uses ws instead of switching to it's ...
user avatar
  • 533
1 vote
1 answer
354 views

GraphQL datasource is empty with Integrated JSS App

I have a query that is working in the GraphiQL UI : query GetBreadcrumb($datasource: String!) { datasource(value: $datasource) { ...mySelectedFields parent { ...mySelectedFields ...
user avatar
4 votes
1 answer
361 views

GraphQL Search facetOn Parameter

I'm trying to use the Sitecore GraphQL search function that takes in the "facetOn" parameter. Unfortunately I'm not having much luck with the results, and I suspect it's because I'm doing something ...
user avatar
0 votes
1 answer
420 views

In JSS how do I support both secure and open GraphQL endpoints?

In my JSS application, how do I support both authenticated (logged in) GraphQL endpoints and in-secure (public/open) GraphQL endpoints? The example Angular application shows the usage of only one ...
user avatar
  • 1,059
0 votes
1 answer
117 views

Access Denied when using Mutation to create Item JSS Graphql

I created a form that when a user submit, values on that form will be created as field values of a new Sitecore Item. However, I encountered an error response from the GraphQL execution of Access ...
user avatar
1 vote
1 answer
378 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
user avatar
  • 11
1 vote
1 answer
319 views

GraphQL Filter on PageType

I have been successfully using GraphQL to filter on items assigned to a specific template. Is it possible to do the same with items of a certain PageType?
user avatar
0 votes
1 answer
133 views

graphql is emtpy when using integrated mode

I have a GraphQL to fill in my menu. When I use jss start:connected it works just fine, but when I deploy (jss deploy app) and get it from the server it's empty. I have been digging a bit into what'...
user avatar
  • 409
1 vote
0 answers
352 views

What is the best way to flatten structure

I have a structure where directly below the /home node I wish to have all the stores. Each store should have information like opening hours and address. This data was created as a component. This ...
user avatar
  • 409
0 votes
1 answer
214 views

Sitecore came up with GraphQL in 9.2, so internally does they use Sitecore API?

What does GraphQL use internally to query the Sitecore items?
user avatar
3 votes
2 answers
589 views

Access Referenced Items using Integrated GraphQL

I am having following content tree: In GraphQL (GQL), if I am rendering Product-1 (current context item) and wanted to access all the categories where Product-1 referenced in the multi-list field of ...
user avatar
0 votes
1 answer
1k views

Sitecore GraphQL Search query not working - Error trying to resolve search [duplicate]

I have the checked my instance and search query is enabled. I am getting the below error when i testing my search query in xGraph Browser Query query{ search(keyword:"smart"){ results{ ...
user avatar
  • 1