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.
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
fields
and keyName
establish associated resources and defined indexes for the relationship.