Quiz on Queries
Test your knowledge on GraphQL queries.
1
Take a look at the GraphQL fragment below:
fragment NameParts on Person {
firstName
lastName
}
What is the correct usage of the GraphQL fragment?
A)
query GetPerson {
people(id: "7") {
firstName
lastName
avatar(size: LARGE)
}
}
B)
query GetPerson {
people(id: "7") {
...NameParts
avatar(size: LARGE)
}
}
C)
query GetPerson {
people(id: "7") {
}
}
Question 1 of 20 attempted
Get hands-on with 1200+ tech skills courses.