Skip to main content
2 of 2
Highlight the key words that are helpful in answering.

How to get selected dropTree FIeld value from Sitecore using GraphQL

I am trying to fetch the dropTree field vlaue of assigned datasource item in one of my headless Projects.

Have written the below query but here I'm getting dropTree seleted item now i want seleted item details.

GraphQL Query -

query ContentCardQuery($datasource: String!) {
  datasource: item(path: $datasource, language: "en") 
    id
    name
    ... on HistoryDetails {
      dropTreeFIeld {
        id
        name
        targetItem {
          id
          name
        //  here i'm getting dropTree seleted item now i want seleted item details.
          }
        }
      }
    }
  }
}

Has anyone had this problem or know how to fix it?