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?
Suggested Answer: C
Get Premium Sitecore-XM-Cloud-Developer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
12 comments · newest first
LA
Laticia
2 months ago
C) createltem seems too simple. I doubt that's the correct one.
MA
Matthew
2 months ago
I feel like B) create Templateltem could work too, but it seems more for templates.
KA
Karina
2 months ago
I think it's A) createOrUpdateltem. It sounds right for creating items.
TO
Tora
3 months ago
I disagree, I think it's B) create Templateltem.
DA
Dacia
3 months ago
Wait, is there really a mutation called create Templateltem? Sounds weird.
EM
Emerson
3 months ago
Definitely A) for sure!
TY
Tyisha
3 months ago
I thought it was C) createltem.
LE
Lewis
3 months ago
A) createOrUpdateltem is the right one!
VI
Vicente
3 months ago
I’m leaning towards "createItem," but I might be mixing it up with another mutation we covered.
AL
Alease
4 months ago
I remember we discussed "createTemplateItem" in relation to templates, but I don't think that's the right choice for a new item.
BE
Beatriz
4 months ago
I feel like "createOrUpdateItem" sounds familiar, but I’m not sure if it’s the right one for just creating an item.
GE
Geraldo
4 months ago
I think the mutation for creating a new item is similar to the one we practiced in class, but I can't remember if it was "createItem" or something else.