Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "link/parseValue"

Index

Functions

Functions

parseValue

  • parseValue(value: ILinkImmutable | null): Internal
  • Invoked when literal JSON needs to be parsed into the internal representation. When variables are used, they can be defined as pure JSON. This function parses that JSON into the concrete links for internal use.

    query ($link: ConversationLink!) {
      update(link: $link) {
        dom
      }
    }
    {
      "type": "direct",
      "id": "d5be6f95-d521-4576-b27f-f662d7fd9dec"
    }
    throws

    { TypeError } the incoming data was invalid

    Parameters

    • value: ILinkImmutable | null

      the parsed variable value

    Returns Internal

    a concrete Link class