Generator

gql.client.codegen.Generator$
object Generator

Attributes

Source:
Generator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Attributes

Companion:
trait
Source:
Generator.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ContextInfo

Attributes

Companion:
object
Source:
Generator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Fragment
class Operation
final case class FieldPart(typePart: Doc, subPart: Option[Part], codec: Doc)

Attributes

Source:
Generator.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class Input(query: Path, output: Path)

Attributes

Source:
Generator.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class Output(path: Path, doc: Doc)

Attributes

Source:
Generator.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class Part(name: String, typePart: NonEmptyList[Doc], subParts: List[Part], codec: NonEmptyList[Doc], contextInfo: Option[ContextInfo])

Attributes

Source:
Generator.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Types

type CurrentPath[F[_]] = Local[F, Chain[String]]

Attributes

Source:
Generator.scala

Value members

Concrete methods

def generateExecutableDefs[F[_] : Parallel](schema: Map[String, TypeDefinition], query: NonEmptyList[ExecutableDefinition])(implicit evidence$4: Parallel[F], P: CurrentPath[F], F: MonadError[F, Type[String]]): F[Doc]

Attributes

Source:
Generator.scala
def generateField[F[_] : Parallel](companionName: String, schema: Map[String, TypeDefinition], f: Field, fd: FieldDefinition)(implicit evidence$1: Parallel[F], P: CurrentPath[F], F: MonadError[F, Type[String]]): F[FieldPart]

Attributes

Source:
Generator.scala
def generateSelection[F[_] : Parallel](companionName: String, schema: Map[String, TypeDefinition], fieldMap: Map[String, FieldDefinition], sel: Selection)(implicit evidence$2: Parallel[F], P: CurrentPath[F], F: MonadError[F, Type[String]]): F[FieldPart]

Attributes

Source:
Generator.scala
def generateTypeDef[F[_] : Parallel](schema: Map[String, TypeDefinition], name: String, typename: String, sels: NonEmptyList[Selection], contextInfo: Option[ContextInfo])(implicit evidence$3: Parallel[F], P: CurrentPath[F], F: MonadError[F, Type[String]]): F[Part]

Attributes

Source:
Generator.scala
def generateValue(v: Value[AnyValue], anyValue: Boolean): Doc

Attributes

Source:
Generator.scala

Attributes

Source:
Generator.scala
def hardIntercalate(left: Doc, right: Doc, xs: List[Doc], sep: Doc): Doc

Attributes

Source:
Generator.scala
def hardIntercalateBracket(left: Char, sep: Doc)(xs: List[Doc])(right: Char): Doc

Attributes

Source:
Generator.scala
def in[F[_], A](field: String)(fa: F[A])(implicit P: CurrentPath[F]): F[A]

Attributes

Source:
Generator.scala

Attributes

Source:
Generator.scala
def params(xs: List[Doc]): Doc

Attributes

Source:
Generator.scala
def quoted(doc: Doc): Doc

Attributes

Source:
Generator.scala
def quoted(str: String): Doc

Attributes

Source:
Generator.scala
def raise[F[_], A](msg: String)(implicit F: MonadError[F, Type[String]], P: CurrentPath[F]): F[A]

Attributes

Source:
Generator.scala
def readAndGenerate[F[_] : Async](schemaPath: Path): (F, Input) => Stream[F, EitherNec[String, Output]]

Attributes

Source:
Generator.scala
def readGenerateWrite[F[_]](schemaPath: Path)(implicit F: Async[F]): (F, Input) => List[String]

Attributes

Source:
Generator.scala
def scalaField(name: String, tpe: String): Doc

Attributes

Source:
Generator.scala

Concrete fields

Attributes

Source:
Generator.scala

Attributes

Source:
Generator.scala