Questions tagged [pca]
Questions for the Public Content API, the Content Delivery API that uses GraphQL as its query language
23
questions
0
votes
0
answers
40
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"
...
1
vote
1
answer
53
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, ...
4
votes
2
answers
713
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 ...
6
votes
1
answer
335
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 ...
6
votes
1
answer
236
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
...
3
votes
2
answers
169
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 ...
1
vote
1
answer
52
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
...
2
votes
2
answers
405
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 ...
0
votes
0
answers
39
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 ...
3
votes
1
answer
199
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: ...
1
vote
1
answer
109
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 ...
1
vote
1
answer
347
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 ...
1
vote
1
answer
168
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/...
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 ...
4
votes
2
answers
234
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 ...
0
votes
1
answer
103
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
}
}
...
2
votes
0
answers
85
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 ...
6
votes
1
answer
554
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. ...
2
votes
0
answers
153
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-...
5
votes
2
answers
289
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 ...
5
votes
1
answer
228
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 ...
4
votes
2
answers
236
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: ...
4
votes
1
answer
356
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
...