SDL Tridion sites 9 Public Content API With GraphQL - Part 2
Updated: Sep 18, 2019
Today I am going to share some useful complex query which will help you to do certain operations while querying.
Let’s start with a simple one – Get Keyword using GraphQL
Now let's play with filter. Here is an example to retrieve items based on item type -
Similarly you can retrieve Components based on Custom Metadata -
Also you can perform AND / OR operation while retrieving items based on Custom metadata -
I have already shared an example of retrieving pages. Using below query you can sort the result based on your requirement -
The sorting operation can be performed over the following fields (click here for more details):
Hope you like this article! Please add your comments below if you would like to see more examples like this.