Module Values.DefinitionDocumentSource

A document that defines an entity.

Sourcetype nonrec t = {
  1. language : DefinitionLanguage.t;
    (*

    The language used to define the entity. GRAPHQL is the only valid value.

    *)
  2. text : DefinitionText.t;
    (*

    The GraphQL text that defines the entity.

    *)
}
Sourceval context_ : string
Sourceval make : language:DefinitionLanguage.t -> text:DefinitionText.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of DefinitionText.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t