Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Sitecore Exam Sitecore-XM-Cloud-Developer Topic 4 Question 35 Discussion

Actual exam question for Sitecore's Sitecore-XM-Cloud-Developer exam
Question #: 35
Topic #: 4
[All Sitecore-XM-Cloud-Developer Questions]

A developer is tasked with creating an item using the Sitecore Authoring and Management GraphQL API. Which of the following GraphQL mutations is the correct way to create a new item?

Show Suggested Answer Hide Answer
Suggested Answer: C

The correct GraphQL mutation to create a new item in Sitecore XM Cloud is createItem. This mutation allows developers to specify the necessary details such as the item's name, template ID, parent ID, language, and fields to create a new content item within the Sitecore content tree.


Contribute your Thoughts:

Dean
24 hours ago
Haha, B) createTemplateItem? I wish Sitecore had a mutation that just created templates for me. That would make my life a lot easier.
upvoted 0 times
...
Vincenza
3 days ago
Hmm, I was thinking it might be A) createOrUpdateItem, since that would allow you to create a new item or update an existing one. But C) createItem does sound like the more specific option.
upvoted 0 times
...
An
9 days ago
I agree with Emmett, createOrUpdateltem makes sense for creating a new item using GraphQL.
upvoted 0 times
...
Emmett
27 days ago
I think the correct answer is A) createOrUpdateltem.
upvoted 0 times
...
Gayla
1 months ago
I'm pretty sure the correct answer is C) createItem. That's the standard mutation for creating new items in the Sitecore GraphQL API.
upvoted 0 times
Annita
2 days ago
I'm not sure, but I think it might be D) updateItem.
upvoted 0 times
...
Annice
7 days ago
I believe it's A) createOrUpdateItem.
upvoted 0 times
...
Louvenia
21 days ago
I think the correct answer is C) createItem.
upvoted 0 times
...
...

Save Cancel