The most common flow in the e-learning system begins with users starting their learning journey from the catalog page. To retrieve the catalog page with the available trainings for a specific user or anonymous one, you can use the following API query:
Copy
Ask AI
query getCatalogData { getCatalogData(first: 3) { edges { node { cta { actionId title arguments { key value } metadata { key value } } modulesNumber activitiesNumber training { title domain { name } image { alt title url } duration { name } attempt { metrics { progress status } } } } } pageInfo { hasNextPage startCursor endCursor } totalItems }}
With the data retrieved from the example above, you should be able to build the catalog page as shown below.The catalog query can be enhanced with filtering, pagination, and sorting options. Please refer to the dedicated pages for more details.