Skip to main content
7 votes
Accepted

How to sort GraphQL query results by custom metadata field?

The GraphQL result sorting currently supported the following fields only, It's possible to extend GraphQL extension in sites 9.1. CREATION_DATE INITIAL_PUBLISH_DATE ITEM_ID ITEM_TYPE ...
Velmurugan's user avatar
  • 8,215
7 votes
Accepted

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

To get the Component Presentations on a Page, There are two different types of component presentations, dynamic and embedded. Embedded templates are used when a component is added to a page and ...
Velmurugan's user avatar
  • 8,215
6 votes

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

To fetch the As-is data template less publishing, called “untyped content” from GraphQL: { page(namespaceId: 1, publicationId: 5, pageId: 730) { itemId title url content { ....
Velmurugan's user avatar
  • 8,215
5 votes
Accepted

GraphQL Query to Fetch all Image Components for a Publication

Try adding a customMeta under the filter section: customMeta: { key: "ishtype.object.value", value: "ISHIllustration" } You may also be able to do this in code, using the Public Content API (PCA) ...
Damian Jewett's user avatar
5 votes
Accepted

GraphQL does not return titles of categories and keywords

Hotfix CD_11.0.0.13730.zip is now available for this issue (via FTP or it can be requested from Support as well).
Elena Serghie's user avatar
4 votes

Retrieving Individual Component Fields Using The GraphQL Content Service

Rick already answered to clarified. Indeed!, there is no OOTB way to retrieve individual components fields values of published DCP and page JSON outputs, but It's possible to do a Graph-QL extension ...
Velmurugan's user avatar
  • 8,215
4 votes
Accepted

Graphical IDE to perform queries on the Public Content API 9.1

GraphiQL comes "out of the box" with Tridion. If you can locate your api endpoint, just add /graphiql and you should find that it works. So for example, on my local test setup, the API is at http://cd....
Dominic Cronin's user avatar
3 votes
Accepted

Can we have PCA GraphQL on WEB 8.5?

Well, I did some PoC in the past on this topic, you can read more about this, and to answer your question YES, you can have PCA api working with WEB 8.5. You need to follow below steps. Create new ...
Hem Kant's user avatar
  • 2,208
3 votes
Accepted

GraphQL client.executeItemQuery is throwing error

added InputSortParam inputSortParam = new InputSortParam(); inputSortParam.setOrder(SortOrderType.Ascending); inputSortParam.setSortBy(SortFieldType.LAST_PUBLISH_DATE); this fixed the problem. ...
Neetesh Narvaria's user avatar
3 votes
Accepted

Retrieving Individual Component Fields Using The GraphQL Content Service

Unfortunately, the DD4T JSON (or DXA R2 JSON for that matter) is basically just a blob of text for the Content Service. Indeed, the GraphQL Content Service provides a feature to return JSON content ...
Rick Pannekoek's user avatar
3 votes

GraphQL does not return titles of categories and keywords

I get similar results in my Sites 9 setup. It could be a bug because I also cannot filter on keyword title, only on keyword key. However you can request the Keyword key to be part of the response: { ...
Philippe Conil's user avatar
2 votes

GraphQL Query to Fetch all Image Components for a Publication

Saurabh - I believe you can filter on schema ID or Title too? schema: { title: SCHEMA_TITLE }
Dylan .. Mark Saunders's user avatar
2 votes

GraphQL componentPresentation null issue

There are two different types of component presentations, dynamic and embedded. Embedded templates are used when a component is added to a page and published only in the context of that page. Dynamic ...
Karim Mazzoni's user avatar
2 votes
Accepted

Does GraphQL work with default variables?

It works for me, I'm able to reproduce this issue my side. if the graphql query used variables in parameters then always expected to send the value of the query variables to be {}. if we pass query ...
Velmurugan's user avatar
  • 8,215
2 votes
Accepted

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

Per the error and this example in the documentation, the argument contextData.type probably isn't a valid ClaimValueType. Perhaps you meant type: STRING instead of type:"STRING"?
Alvin Reyes's user avatar
  • 12.8k
2 votes

Can we have PCA GraphQL on WEB 8.5?

AFAIK - and I can say officially it is not supported and tested, but I can’t think of anything which would break it. this is all unofficial Note: As long as you don’t have SmartTarget in there, as ...
Velmurugan's user avatar
  • 8,215
2 votes
Accepted

GraphQL client exception while accessing DXA default website

The error shown in the logs says 'could not locate the root of the configuration'. Could this have anything to do with this (I know it's a different version, but the issue might still apply to 9.1) ...
Harald Hoffelinck's user avatar
2 votes

KeywordModelData instead of actual keyword returned in PCA query

Your data looks a lot like DXA R2 JSON, so I assume you’re using DXA (TBBs at least)? It also looks like the Categories are marked as publishable, in which case the TBBs will only include the Keyword ...
Rick Pannekoek's user avatar
2 votes
Accepted

DXA - Get published settings through Graphql

Ended up going a different way. Instead of trying to get the labels/configuration externally, now I'm pushing them from DXA to the consuming applications. Way to obtain the settings within DXA: string ...
Atila Sos's user avatar
  • 6,290
1 vote
Accepted

Trdion Sites pagination in Graphql query to get total records count

The total count field is not available. One workaround is to use a separate query to get the total count. You can execute a second query with the same filter criteria but without the pagination ...
Velmurugan's user avatar
  • 8,215
1 vote

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

Tridion Sites 9.5 Search - provided following Graphql API Queries searchById searchByField searchByCriteria searchByRawQuery For your use case, you can try to use either searchByCriteria or ...
Velmurugan's user avatar
  • 8,215
1 vote

DXA - Get published settings through Graphql

AFAIK - you could use downloadUrl to download the binary from the content service. Alternatively, you can use the item filter query to get all the binaries in that publication which will give you all ...
Velmurugan's user avatar
  • 8,215
1 vote

GraphQL client exception while accessing DXA default website

you can try to delete all configuration without parent item, Only the DefaultEnvironment should have no parent. Query for the same would be like this. ""delete from CONFIGURATION_VALUE where ITEM_ID ...
Adarsh Kumar's user avatar
1 vote
Accepted

GraphQL tridion docs query throws null pointer exception

The error is caused by the fact that customMeta/valueType = null
Rick Pannekoek's user avatar
1 vote

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

As noted in below KB article, a page(...) query and a componentPresentations(...) query can be used to fetch needed component presentations and then combine results on client. It is possible to ...
Terry Kim's user avatar
  • 936

Only top scored, non community-wiki answers of a minimum length are eligible