Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "link/parseLiteral"

Index

Functions

Functions

parseLiteral

  • parseLiteral(ast: ValueNode, variables: IVariables | null | undefined): undefined | Internal
  • 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(link:{ type: 'direct', id: "d5be6f95-d521-4576-b27f-f662d7fd9dec" })
    }
    throws

    { TypeError } invalid incoming data

    Parameters

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

      any variables that require replacement

    Returns undefined | Internal

    a concrete Link class