Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM GraphQL : Get the published content fragments only in author instance?

Avatar

Level 5

Is there any filter to get content fragment metadata with a field of isPublished as boolean? Or is there any other API like querybuilder or replication API to get the status?

 

I see https://BASEURL/bin/replicate.json can be used to set the status however I am interested to get the status of a given content fragment.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You can use query builder api to do that.

 

path=/content/dam/aemlab/oneweb/cf
type=dam:Asset
1_property=jcr:content/contentFragment
1_property.value=true
2_property=jcr:content/cq:lastReplicationAction
2_property.value=Activate
p.hits=selective
p.properties=jcr:path
p.limit=-1

 

Corresponding API for above query

http://localhost:14502/bin/querybuilder.json?1_property=jcr%3acontent%2fcontentFragment&1_property.v...  

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

You can use query builder api to do that.

 

path=/content/dam/aemlab/oneweb/cf
type=dam:Asset
1_property=jcr:content/contentFragment
1_property.value=true
2_property=jcr:content/cq:lastReplicationAction
2_property.value=Activate
p.hits=selective
p.properties=jcr:path
p.limit=-1

 

Corresponding API for above query

http://localhost:14502/bin/querybuilder.json?1_property=jcr%3acontent%2fcontentFragment&1_property.v...