Exercise: Adding Client Identification
🎯 Goal: Add client headers to identify client usage.
Open Explorer up again. Click on the Headers tab at the bottom.
Add a new header for
apollographql-client-name
. If you have an Apple device, set your client name header value toios
. If Android, useandroid
.Add a new header for
apollographql-client-version
. Choose a semver-friendly number like1.0
for the version value.Load up our
SubmitExperienceLevel
mutation again, you're now "Trainee" level or higher!Run our
SubmitExperienceLevel
mutation again, make sure not to choose "Novice" anymore!
✅ Solution
Run this operation:
mutation SubmitExperienceLevel($level: InsightsExperienceLevel!$companyName: String) {submitInsightsExperienceLevel(level: $level, companyName: $companyName)}
With the following variables:
{"level": "Trainee"}# (There are 4 possible values to choose from: "Novice", "Trainee", "Practitioner", or "Wizard")
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.