Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 567 Bytes

notes.md

File metadata and controls

16 lines (10 loc) · 567 Bytes

GraphQL

  • Is a query language that makes enable to fetch data partially or entirelly. It is possible to select the fields to return.
  • Differently of REST APIs, in GraphQL there is only one endpoint where you pass the parameters through the request body.
  • The tables/collections are like 'vertices' and the relationship(pk/fk) between them are like 'edges'.

Types

  • In GraphQL the basics types are named 'scalar types'.
  • The default scalar types are: Int, Float, String, Boolean and ID.
  • It's possible to create new scalar types.

Resolvers

Schemas