Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "formation/meta/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(meta:{ features: ["one", "two", action: "prompt/signup"]}) {
        meta
      }
    }

    Parameters

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

      any variables that require replacement

    Returns Internal

    a concrete meta class