### Advanced Concepts of AEM Headless – Standard GraphQL Queries ### 1. getAdventureAdministratorDetailsByAdministratorName: ------------------------------------------------------ query getAdventureAdministratorDetailsByAdministratorName($name: String!){ adventureList( _locale: "en" filter: {administrator: {fullName: {_expressions: [{value: $name}]}}} ) { items { adventureTitle administrator { fullName contactInfo { phone email } administratorDetails { json plaintext } } } } } Query variables: { "name": "Jacob Wester" } 2. getTeamByAdventurePath: ------------------------------------- query getTeamByAdventurePath($fragmentPath: String!){ adventureByPath(_path: $fragmentPath) { item { _metadata{ stringMetadata{ name value } } instructorTeam { teamFoundingDate description { plaintext json } } } _references { ... on ImageRef { __typename _path } ... on LocationModel { __typename _path name address { streetAddress city zipCode country } contactInfo { phone email } } } } } Query variables: { "fragmentPath": "/content/dam/wknd/en/adventures/yosemite-backpacking/yosemite-backpacking" } 3. getTeamMembersByAdventurePath ---------------------------------------- query getTeamMembersByAdventurePath($fragmentPath : String!){ adventureByPath(_path: $fragmentPath ){ item { instructorTeam { teamMembers{ fullName contactInfo{ phone email } profilePicture { ... on ImageRef { _path } } instructorExperienceLevel skills biography{ plaintext } } } } } } Query variables: { "fragmentPath": "/content/dam/wknd/en/adventures/yosemite-backpacking/yosemite-backpacking" } 4. getLocationDetailsByLocationPath ------------------------------------- query getLocationDetailsByLocationPath($fragmentPath : String!){ locationByPath(_path: $fragmentPath){ item { name description{ html json } contactInfo{ phone email } locationImage { ...on ImageRef { _path } } weatherBySeason address{ streetAddress city state zipCode country } } } } Query variables: { "fragmentPath": "/content/dam/wknd/en/adventures/locations/yosemite-national-park/yosemite-national-park" } 5. getLocationPathByAdventurePath ------------------------------------- query getLocationPathByAdventurePath($fragmentPath : String!){ adventureByPath(_path: $fragmentPath ){ item { location{ _path } } } } Query variables: { "fragmentPath": "/content/dam/wknd/en/adventures/yosemite-backpacking/yosemite-backpacking" } 6. getTeamLocationByLocationPath ------------------------------------- query getTeamLocationByLocationPath($fragmentPath : String!){ locationByPath(_path: $fragmentPath ){ item { name description{ json } contactInfo{ phone email } address{ streetAddress city state zipCode country } } } }