| layout | page |
|---|---|
| title | 401.33 Reading Notes |
| permalink | /401-R33/ |
-
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.
- Among the schema annotations,
directivefollowed by@connectionallows 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
fieldsandkeyNameestablish associated resources and defined indexes for the relationship.