Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

1 vote
Accepted

"Component GraphQL Query" field is ignored in Experience Editor

I installed in the solution 2 modules : Sitecore Headless Rendering 22 and Sitecore CLI latest version. The "Sitecore CLI" module was installed as the last one. This module contains the ...
Vlad Iobagiu's user avatar
  • 18.6k
0 votes

Sitecore JSS: How to Hide Sitecore API Key in Client-Side JavaScript File

The React documentation provides a great summary: Your project can consume variables declared in your environment as if they were declared locally in your JS files. By default you will have NODE_ENV ...
Marcel Gruber's user avatar
1 vote

Sitecore JSS: How to Hide Sitecore API Key in Client-Side JavaScript File

This issue arises because the repository contains these details somewhere. Ensure that your scconfig.json or .env file does not contain the SITECORE_API_KEY and SITECORE_API_HOST. By the way, why isn'...
Andi AR's user avatar
  • 763
0 votes

GraphQL include multiple templates

Getting multiple data source items data. query ContentCardQuery($datasource: String!) { datasource: item(path: $datasource, language: "en") { name newsItems: children( ...
Praveen Sharma's user avatar
0 votes

Get Updated and created date values in graph ql query using JSS react next js app

{ item(path: "/sitecore/content/Home/MyProject/Home/About", language: "en") { name versions { path field(name: "__updated"){ value } ...
Praveen Sharma's user avatar
0 votes

How do I get an item's language versions in GraphQL?

Get List of all language versions for particular item query GQLQuerySamples( $contextItem: String!) { GQLType: item(path: $contextItem) { versions(allLanguages: true) { name,...
Praveen Sharma's user avatar
0 votes

How to get Standardvalues from Sitecore GraphQL

Return the name and value from all fields. query GQLQuerySamples($contextItem: String!) { item(path: $contextItem) { fields { name value } } }
Praveen Sharma's user avatar
0 votes

Sitecore Filtering by Field Value on Query of GraphQL

Sitecore GraphQL Search Query - fieldsEqual parameter and it’s explicit usage. In this query: We utilize the fieldsEqual parameter to specify criteria for filtering search results based on the ...
Praveen Sharma's user avatar
1 vote

The new fields that added to template not appear on GraphQl schema on CD server

GraphQL schema auto-updates on CD after publishing. Can you check the schema provider configuration for your GraphQL host is pointing to the correct database as below. <configuration> <...
ckhanna's user avatar
  • 726
0 votes

Identity server container fails to launch due to license error using headless Getting Started project in Sitecore 10 docker

In my case I had previously used a Sitecore 9 docker instance on this same machine. The issue was that there was an environment variable overwriting the license path variable. In windows open your ...
Colin's user avatar
  • 153
0 votes

Sitecore + next.js 301 redirects

I haven't really given this a try, but I found that Sitecore has an example of this implemented in the XM Cloud example repo as a middleware plugin. Please check if this could be useful. https://...
Vinay Jadav's user avatar
1 vote

Invalid graphql endpoint, Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set

I also faced same issue during XM Cloud local setup In my case to resolve this issue added some configuration in .env file, So first check bellow configuration in .env file # To secure the Sitecore ...
Praveen Sharma's user avatar
1 vote

Rendering returns null with hardcoded path but works fine on the playground

The problem you have is the item that you are trying to query. You are trying to get PDF item, so its in the media library. By default, the preview GraphQL API running on the CM or delivery API ...
Richard Seal's user avatar
  • 20.5k
1 vote

Extend GraphQL schema for custom field

Problem During my upgrade from Sitecore 9.2 to 10.3, I faced an issue related to the edge endpoint being hardcoded in the Sitecore.LayoutService.GraphQL.LayoutService....
Vadim Birkos's user avatar
1 vote

Rendering returns null with hardcoded path but works fine on the playground

The issue you are facing probably is that the item itself is not present in the instance. The query returns the same result in the playground and browser console. Please see the attached screenshot ...
Debtanu Biswas's user avatar

Top 50 recent answers are included