Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "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(dom:{ type: 'text', text: 'Hey!'}) {
        dom
      }
    }

    Parameters

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

      any variables that require replacement

    Returns Internal

    a concrete DOM Node class or null upon failure