Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

apollo graphql fragment

fragment NameParts on Person {
  firstName
  lastName
}

query GetPerson {
  people(id: "7") {
    ...NameParts
    avatar(size: LARGE)
  }
}
Source by www.apollographql.com #
 
PREVIOUS NEXT
Tagged: #apollo #graphql #fragment
ADD COMMENT
Topic
Name
3+5 =