Pseudo Random Nonsense Generator

GraphQL types

· note

default types

GraphQL comes with a set of default scalar types out of the box:

  • Int: A signed 32‐bit integer.
  • Float: A signed double-precision floating-point value.
  • String: A UTF‐8 character sequence.
  • Boolean: true or false.
  • ID: The ID scalar type represents a unique identifier, often used to refetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, defining it as an ID signifies that it is not intended to be human‐readable.
type Link {
  id: ID!
  description: String!
  url: String!
  postedBy: User
}

custom types

  • only scalar
  • how to defined is decided by different implementations

Enumeration Types

  • representation of a finite set of types
enum Episode {
  NEWHOPE
  EMPIRE
  JEDI
}

ref