Skip to content

Files

Latest commit

98f648f · Jun 24, 2018

History

History
27 lines (21 loc) · 305 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 305 Bytes

graphql

graphql + react

naming the item and useage fragment

// GraphQL
{
  google: company(id: "1") {
    ...list
  }
  apple: company(id: "2") {
    name
    id
  }
}

fragment list on company {
  name,
  id
}

GraphQNonNull

similar to required, if not provided, then throw error