New answers tagged graphql
1
vote
How to get selected dropTree FIeld value from Sitecore using GraphQL
To get info about Targetitem from the droptree field, use this GraphQL query:
query ContentCardQuery($datasource: String!) {
datasource: item(path: $datasource, language: "en")
id
...
1
vote
How to get selected dropTree FIeld value from Sitecore using GraphQL
To retrieve details of the selected item in the dropTree, adjust your query to match the structure of the HistoryDetailsItems template.
If you need specific field values from this template, modify ...
0
votes
Get item under settings
Here’s an example query to get the root item of a site and navigate to the Settings item:
{
item(path: "/sitecore/content/your-site") {
name
id
children(where: {name: "...
0
votes
How to get selected dropTree FIeld value from Sitecore using GraphQL
You can use the below query to get the droptree field values
query Droptree($datasource: String!) {
datasource: item(path: $datasource, language: "en")
id
name
...
2
votes
Sitecore GraphQL OR condition
It seems you're trying to construct a GraphQL query to filter and sort Sitecore items based on their template types, using a logical "or" condition for templates. Also, you want to ...
1
vote
Fetch grapghQl response in next js
You are trying to use component-level data fetching in your Next JS app. You can go through these steps to get the data for a component.
Write your query like this.
export const GQL = `
query {
...
1
vote
Fetch grapghQl response in next js
you have added endCursor, hasNext in your query. so, If you want to get all the data based on these two variables and in small chunks.
You can try this.
I already tried for my footer component, there ...
1
vote
Fetch grapghQl response in next js
You can use GraphQLRequestClient to make a request to GraphQL from Next.js application.
As a first step, you will need to create GraphQLRequestClient as below.
import { GraphQLRequestClient } from '@...
1
vote
Fetch grapghQl response in next js
In your Next.js project, you can use graphql-request to execute the GraphQL query. Here’s an example of how to fetch data from the GraphQL endpoint and display it in a Next.js page.
Create a new file ...
0
votes
GraphQL Search Query INVALID_OPERATION
In the above query, you're using an outdated method to search for path items, which might not work correctly.
Instead of that You can use latest search query to get total count of the Sitecore content ...
Top 50 recent answers are included
Related Tags
graphql × 142jss × 87
nextjs × 22
xm-cloud × 17
sxa-jss × 13
sitecore-api × 11
solr × 6
layout-service × 6
experience-edge × 6
serialization × 5
sitecore-cli × 5
sxa × 4
content-search × 4
sitecore-client × 3
vercel × 3
multilingual × 2
docker × 2
react × 2
jss-rendering-sdk × 2
edge × 2
sitecore-search × 2
experience-editor × 1
powershell-extensions × 1
security × 1
upgrade × 1