Skip to content

insights: GraphQL api to create a new insight

Created by: coury-clark

To fully migrate away from settings, we need to be able to match the behavior of the creation UI with an API.

  1. For each defined query / series in the creation page we need to create the underlying data series if it does not exist.
  2. Create an insight view and associate it with the creating user and any selected organizations or global
  3. Generate a new unique ID for the insight and return at least the ID. This ID format can likely be something relatively simple, but should respect graphql rules