Java GraphQL - Pass field values to resolver for objects
问题 I am looking to pass a field value to a resolved field using another object type. Another way to put it if I have `Customer > User > Profile' - how can I pass the CustomerID field value that would be in customer to Profile as an argument or variable in order to resolve correctly? 回答1: There's exactly 5 possibilities (as of graphql-java v12) to provide info to a resolver ( DataFetcher ) at any level: 1) Directly pass them in the query (possibly on multiple levels): {customer(id: 3) { user {