Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "guid/parseLiteral"

Index

Functions

Functions

parseLiteral

  • Invoked when a value is passed inline to a GraphQL query. Due to GraphQL language not being quite JSON, the inline value will need to be converted into the GraphQL AST. This function coerces to the internal type.

    query {
      update(guid: "fb123594-3344-466e-815b-d610e42718a9")
    }
    throws

    { TypeError } invalid AST

    Parameters

    • ast: ValueNode
    • variables: IVariables | null | undefined

      any variables that require replacement

    Returns Internal

    a concrete GUID class