Swiftpack.co - Package - Proscom/GraphQLCLI

GraphQLCLI

Platforms

Command line tool to generate GraphQL models using scheme.

Based on template language Stencil.

Template

The arguments should be passed to template are GraphQL objects.

Object

  • name - String
  • kind - String (OBJECT, ENUM, INPUT_OBJECT)
  • description - String (description of object)
  • fields - [Field]
  • inputFields - [Field]
  • enumValues - [Enum]

Field

  • name - String
  • replaceName - String (can be equal name)
  • description - String
  • arguments - [Argument]
  • type - Type
  • finalType - Type
  • isList - Bool
  • isNonNull - Bool

Argument

  • name - String
  • description - String
  • type - Type
  • finalType - Type
  • isList - Bool

Type

  • kind - String
  • name - String
  • replaceName - String (can be equal name)
  • ofType - Type
  • isScalar - Bool