I'm currently using Sitecore GraphQL to fetch fields from a specific item in Sitecore. However, my query is fetching all standard fields along with the fields added in the template. I only want to retrieve the fields that are explicitly added to the template.
Here's the query I'm using:
query GetFieldsFromContextItem($contextItem: String!) {
item(path: $contextItem) {
fields {
id
name
value
}
}
}
Is there a way to modify this query or add parameters to achieve this? I want to exclude standard fields like __Created
, __Updated
, etc., and only retrieve the fields defined in the template.
Any help or guidance would be greatly appreciated. Thank you!