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

Questions tagged [graphql]

Questions about GraphQL in the context of Tridion Sites Content Delivery

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

Images are not Resolving path using GraphQL 9.6 if its using inside other component like Article Schema as image field

{ typedComponent(namespaceId: 1, publicationId: , 8,componentId: 52117) { title ... on DownloadCenterAdvert{ title image{ ...
Jagannath's user avatar
1 vote
1 answer
32 views

Get List of submaps based on parent map id of Tridion docs[not a root map] using graphql

I want to create a nested ul li list based on a list of publications --> submaps --> submaps... and so on; using graphql query. I am able to achive following: list of publications 1st level of ...
soumava sarkar's user avatar
1 vote
1 answer
50 views

Is there are query to get all the keywords inside a category in Taxonomy Using content delivery graphql api

Is there a graqhql CD query to get all the keywords inside a category in Taxonomy. I see an endpoint, but it doesn't serve my purpose: keyword(namespaceId: Int!, publicationId: Int!, categoryId: Int!, ...
Arjun's user avatar
  • 11
1 vote
0 answers
38 views

Its possible to retrieve the components published under a specific folder and filter by lastPublishDate?

query GenericQuery { items( filter: {itemTypes: [COMPONENT], publicationIds: [1], schema: {id: 460}} ) { edges { node { itemId title lastPublishDate ...
David Cabrera's user avatar
2 votes
0 answers
60 views

How to get keyword by tcm id from GraphQL

We are currently rewriting some old .net code that is using the old in process api to retrieve published data from broker. We are now trying to rewrite this to GraphQL. We stumble into a lot of things ...
Fredrik Sundman's user avatar
0 votes
0 answers
49 views

How can I filter Components of particular schema using GraphQL based on content data field e.g. date>"2023-01-01"?

query GenericQuery { items( filter: {publicationIds: 1, itemTypes: [COMPONENT], schema: {id: 112233} #want to add here some condition e.g. component.column.date>"2023-01-01" ...
shreeniwas kushwah's user avatar
1 vote
1 answer
73 views

Trdion Sites pagination in Graphql query to get total records count

I am using cursor for pagination in Graphql query, I want to also get total records count with the response, How can I achieve? query GenericQuery { items( filter: {publicationIds: 1, ...
shreeniwas kushwah's user avatar
1 vote
0 answers
65 views

GraphQL requests using two groups of AND expressions grouped by Or operator

In the example below: https://docs.rws.com/816112/933327/sdl-tridion-sites-9-5-main-documentation/graphql-requests-using-boolean-expressions-with-more-than-two-operands A combination of two-operand ...
ahmad shnaiwer's user avatar
1 vote
0 answers
67 views

GraphQL: how to query items base on itemType AND itemId

I would like to retrieve through GraphQL all the published URLs of a page, for all publicationIds. Is there any way to retrieve items based on itemType (e.g., PAGE) and itemId (e.g., pageId="196&...
Maitane's user avatar
  • 11
0 votes
1 answer
132 views

How to get all child component details of a page (with regions)

I am trying to get all page component details including child component details. returnChildRegionComponents parameter was set to true in components in request. But the returned response is missing ...
Sasi's user avatar
  • 21
2 votes
1 answer
108 views

How to get metadata fields of Regions/Components in a page using GraphQL?

I created a GraphQL request to get all component details based on the regions of a page. { page(namespaceId: 1, publicationId: 2, pageId: 231) { itemId title url regions { ...
Sasi's user avatar
  • 21
2 votes
0 answers
78 views

Is there a performance impact for using GraphQL fragments with the Public Content API?

We can create a reusable parts of a GraphQL query using a fragment as seen in the following example. fragment Fields on Component { itemId title content { ... on UntypedContent { data ...
Alvin Reyes's user avatar
  • 12.8k
1 vote
1 answer
119 views

How to get nested (linked) Components in fewer requests over GraphQL

Is it possible to get linked content in the same GraphQL query? For example, using the following query we can get back a page and components within its regions. { pagequery: page(namespaceId: 1, ...
Alvin Reyes's user avatar
  • 12.8k
1 vote
0 answers
134 views

How to exclude results in graphql query

I want to find a page through its keywords and/or metadata. I have this query that works correctly and returns all the pages with the keyword 9999 and aValue. { items(filter: { namespaceIds: [1],...
David Serrano's user avatar
2 votes
1 answer
185 views

Get list of semantic models from a page using GraphQL

I'm trying to use GraphQL to get my published components as semantic models. I'm using Tridion 9.6 so the models are generated automatically - this works fine. I am able to retrieve them using a query....
Quirijn's user avatar
  • 6,787
0 votes
0 answers
38 views

Multimedia and Updated content is not reflecting when data is fetched using graphql api

I'm new to Tridion and I'm trying to created a page in CM and want to show that data into react using graphql. I'm able to get the data but facing issues with Multimedia : I don't know how to display ...
Sneh Gour's user avatar
1 vote
0 answers
183 views

GraphQL query example to get list of publications from where a page is published

We have a requirement that during the page loads we need to check whether that page is published from all the child publications or not. Based on that result, we need to add those URLs to the page. In ...
Sayantan Basu's user avatar
1 vote
1 answer
49 views

Is External Content Library search exposed in Content Delivery?

External Content Library (ECL) started as mainly a Content Manager-side extension mechanism with the ability to publish references or external items directly to Content Delivery. However, in later ...
Alvin Reyes's user avatar
  • 12.8k
3 votes
1 answer
172 views

Field Operators in PCA GraphQL?

We are rewriting our existing CIL client code by replacing it with PCA/GraphQL client code. To retrieving Dynamic Component Presentations, we are using API method apiClientProvider.getClient()....
Shahid Eqamuddin's user avatar
4 votes
1 answer
71 views

How do TCDL tags work with the GraphQL CD endpoint?

How do <TCDL> tags work with the GraphQL-based Content Delivery API(s)? I understand historically customer Content Management code and/or the Default Building Blocks would transform Component ...
Alvin Reyes's user avatar
  • 12.8k
7 votes
2 answers
237 views

Geting binary details from a taxonomy query with GraphQL

TLDR: What's wrong with this GraphQL query? Note that the ... on BinaryComponent isn't rendered although the ... on Component confirms these are multimedia items being returned? { items(filter: {...
Dylan .. Mark Saunders's user avatar
0 votes
1 answer
162 views

Tridion Sites 9.5 Templateless Publishing and Graphql

In Tridion sites 9.5 when the component alone ( no template) is published then it push the data in JSON format to the CONTENT table in broker DB. Now how to fetch that published JSON data from the ...
Gulshan Thakur's user avatar
1 vote
1 answer
142 views

Get list of pages by structure group path using graphql ApiClient

I can get a specific page by exact url using ApiClient: ApiClient client = ApiClientFactory.Instance.CreateClient(); ... var page = client.GetPage(ContentNamespace.Sites, publicationId, pageUrl, null, ...
ahmad shnaiwer's user avatar
2 votes
2 answers
274 views

Headless content implementation in Tridion 9.5

We just upgraded to Tridion 9.5 and plan to implement headless content model using out of the box features of Tridion 9.5. Not able to get end-to-end implementation details in Tridion docs. I am ...
Venkat Kolli's user avatar
2 votes
1 answer
83 views

Can a Page on CM be tagged with multiple taxonomies & queried via API?

I want to send the page content via SDL API based on the taxonomies similar to what we can do with the dynamic components. Hence, could you please provide some pointers on the following: Is it ...
Asingh's user avatar
  • 87
7 votes
1 answer
295 views

Getting Page Presentations from GraphQL. In order, with Content

I have pages being published using DXA Page Templates and include CPs added to the page directly (again, using standard DXA CTs). I want to get the Component Presentations from a Page (with the ...
Dylan .. Mark Saunders's user avatar
4 votes
2 answers
788 views

How to do Graphql queries on elastic search with multiple logic conditions, sorting on multiple fields and also on date range

We are using Sites9.5 version and indexing schema field values into elastic search (ES). We are trying to use graphql to query elastic search index. Currently SDL provides following four methods to ...
Prashant's user avatar
6 votes
1 answer
360 views

GraphQL on templateless page - It doesn't return data on firing query in GraphQL

I have 2 pages in SDL Tridion: Template based page ( where page template is "Content Page" ) and Templateless page (where page template is "Data Publishing page Template"). When ...
Dhara's user avatar
  • 223
6 votes
1 answer
247 views

Graphql doesn't retain the order list of component from SDL 9.5

I am trying to request to get the Component Presentations on a Page by firing query in GraphQL { page(namespaceId: 1, publicationId: 7, pageId: 730)   {     itemId     title     ...
Dhara's user avatar
  • 223
3 votes
2 answers
174 views

DXA - Get published settings through Graphql

Pardon my limited knowledge (or rather lack of) of GraphQL, but I wasn't able to find a way to retrieve values that are added through DXA's Publish Settings using just graphs. I was able to retrieve ...
Atila Sos's user avatar
  • 6,290
5 votes
3 answers
228 views

Link resolving doesn't use page context for Dynamic Component Presentations

My Java DXA application renders dynamic component presentations across the site, similar to 'Teaser' functionality in the Reference implementation of DXA. One of the Rich text field of DCP contains ...
Shahid Eqamuddin's user avatar
1 vote
1 answer
53 views

KeywordModelData instead of actual keyword returned in PCA query

I am querying the PCA for Component Presentations in order to return the data via a service. I've found that the relevant data is available in { edges { node { rawContent { data ...
Andrew's user avatar
  • 11
2 votes
2 answers
439 views

GraphQL client exception while accessing DXA default website

We are getting error "unable to load the DynamicContent Module" while browsing default DXA 2.2 website. We have published the minimum content required to browse the website. Here is the website log ...
Mukesh Kumar's user avatar
  • 4,074
0 votes
0 answers
42 views

How to migrate SDL web 8.5 in Process API (java implementation) to GraphQL

We have custom java code - sdl web 8.5 in-process API (Java) to fetch component presentations from broker DB and serve it to web application. What does it need to migrate this implementation to ...
Gulshan Thakur's user avatar
3 votes
1 answer
212 views

GraphQL tridion docs query throws null pointer exception

Hi I have been trying below graphql query to fetch tridion docs content but it throws null pointer exception, could someone please suggest me what is wrong here query items($first: Int, $after: ...
Neetesh Narvaria's user avatar
1 vote
1 answer
120 views

GraphQL client.executeItemQuery is throwing error

Hi I am trying custom graphql call using dxa apis i am calling this line InputItemFilter inputItemFilter = new InputItemFilter(); inputItemFilter.setCustomMeta(customMetaCriteria); InputSortParam ...
Neetesh Narvaria's user avatar
1 vote
1 answer
428 views

Graphql query with contextdata throws validation error 'STRING' is not a valid 'ClaimValueType' @ 'page'

I am trying to do graphql client call using postman, but i am getting Validation error Validation error of type WrongType: argument 'contextData.type' with value 'StringValue{value='STRING'}' is not ...
Neetesh Narvaria's user avatar
1 vote
1 answer
172 views

Graphical IDE to perform queries on the Public Content API 9.1

What can be the simplest, quick way to perfrom queries on the Public Content API 9.1 from local machine. Can we do it without installing any tool, exe on local machine. If not what are the different s/...
Gulshan Thakur's user avatar
1 vote
2 answers
163 views

Can we have PCA GraphQL on WEB 8.5?

We are currently on WEB 8.5 and maybe in sometime we migrate to Sites 9.x, "in a planning mode". What we liked the most about the Sites 9 is the GraphQL API, which we would like to access with WEB 8.5 ...
CAP_SDLWEB's user avatar
4 votes
2 answers
248 views

GraphQL Query to Fetch all Image Components for a Publication

I want to fetch all the Image Components inside a Publication from DXD. I am using the below Query which gives me all the Components(Topics) inside a Publication but I want just Images. Any idea of ...
Saurabh Gangwar's user avatar
0 votes
1 answer
110 views

GraphQL componentPresentation null issue

i am trying to run this graphQL query { page (pageId: 4026, publicationId: 5, namespaceId: 1) { url, title rawContent(renderContent: true) { content } } ...
Hussain M's user avatar
2 votes
0 answers
86 views

DXA 2.2 Include Pages not pulling in using GraphQLModelServiceProvider

I have a DXA implementation 2.2 and I am having an error where the include page content is not pulling through. As per the DXA Documentation, I am using WebDAV URLs to link the include pages in my ...
Chris Eccles's user avatar
6 votes
1 answer
604 views

How to sort GraphQL query results by custom metadata field?

I am looking for a way to sort GraphQL results by custom metadata field. There is a way how to filter by custom metadata field that is described in documentation, however, I cannot find how to sort. ...
Stan Kroshchenko's user avatar
2 votes
0 answers
159 views

DXA 2.2 trying to fetch sitemap for docs publication, graphql is throwing error

Hi I am trying to fetch sitemapsubtree for docs publication using DXA 2.2 application which is calling GraphQLModelServiceProvider.GetChildSitemapItems method, but i am getting error ERROR [http-...
Neetesh Narvaria's user avatar
5 votes
2 answers
304 views

Retrieving Individual Component Fields Using The GraphQL Content Service

If using DD4T2 and publishing JSON, is it possible to request individual component field elements from the published JSON (e.g. for a page or a DCP) using the GraphQL Content Service (in Tridion Sites ...
Jonathan Williams's user avatar
5 votes
1 answer
237 views

Using Content API (graphql) to filter CPs related to a URL

With Sites 9 and the Content API, is there a way to query for the content associated with a page/url AND filter on component presentations whose components are tagged with specific keywords? My ...
Mark Young's user avatar
5 votes
2 answers
266 views

GraphQL does not return titles of categories and keywords

The public content API (GraphQL) does not appear to return titles of categories or keywords. The following query works, but the titles show up as null: { categories(namespaceId: 1, publicationId: ...
Quirijn's user avatar
  • 6,787
4 votes
1 answer
360 views

Does GraphQL work with default variables?

I'm trying to use the new GraphQL features of the content service in Tridion 9. The following GraphQL query works fine: { page (cmUri:"tcm:10-1310-64") { lastPublishDate, title ...
Quirijn's user avatar
  • 6,787