Embed

If we want to embed a raw js value (function, string, object etc.) into a document, we can use the embed function within the gql tagged template literal

  • most common use case is to pass the value to a directive