Skip to main content
Highlight the key words that are helpful in answering.
Source Link

I am trying to fetch the dropTreeFIelddropTree field vlaue of assigned datasource item template inin one of my headless Projects from datasource itemheadless Projects.

Have written the below query but here I'm getting dropTreedropTree 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?

I am trying to fetch the dropTreeFIeld of datasource item template in one of my headless Projects from datasource item.

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

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?

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?

Source Link

How to get selected dropTree FIeld value from Sitecore using GraphQL

I am trying to fetch the dropTreeFIeld of datasource item template in one of my headless Projects from datasource item.

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

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?