11. Adding client identification
3m

Exercise: Adding Client Identification

🎯 Goal: Add client headers to identify client usage.

  1. Open Explorer up again. Click on the Headers tab at the bottom.

  2. Add a new header for apollographql-client-name. If you have an Apple device, set your client name header value to ios. If Android, use android.

  3. Add a new header for apollographql-client-version. Choose a semver-friendly number like 1.0 for the version value.

  4. Load up our SubmitExperienceLevel again, you're now "Trainee" level or higher!

  5. Run our SubmitExperienceLevel again, make sure not to choose "Novice" anymore!

✅ Solution

Run this :

mutation SubmitExperienceLevel(
$level: InsightsExperienceLevel!
$companyName: String
) {
submitInsightsExperienceLevel(level: $level, companyName: $companyName)
}

With the following :

{
"level": "Trainee"
}
# (There are 4 possible values to choose from: "Novice", "Trainee", "Practitioner", or "Wizard")
Task!
Previous

Share your questions and comments about this lesson

Your feedback helps us improve! If you're stuck or confused, let us know and we'll help you out. All comments are public and must follow the Apollo Code of Conduct. Note that comments that have been resolved or addressed may be removed.

You'll need a GitHub account to post below. Don't have one? Post in our Odyssey forum instead.