Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 909 Bytes

File metadata and controls

25 lines (16 loc) · 909 Bytes
layout page
title 401.33 Reading Notes
permalink /401-R33/

GraphQL

GraphQL Overview

  • GraphQL is a data querying language for databases or similar API usage.

  • Data is distinguished by type, with fields and methods for each.

  • GraphQL handles requests in parsed JSON format.

@connection

  • Among the schema annotations, directive followed by @connection allows establishing relationships between resources (1-to-1; 1-to-many; many-to-many). An example (from the Amplify docs) is:
directive @connection(keyName: String, fields: [String!]) on FIELD_DEFINITION
  • The values for fields and keyName establish associated resources and defined indexes for the relationship.