Create Reddit Feed

Create Reddit feed to ingest Reddit posts.

Graphlit supports ingesting posts from Reddit subreddits, such as /r/OpenAI.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and reddit feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

Currently, Graphlit only supports ingesting the Reddit posts, not the comments on the posts. We plan to add this functionality in future, and continually ingest new comments on posts.

Depending on the specified type parameter, Graphlit requires the specific feed parameters including the Reddit subredditName.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "REDDIT",
    "reddit": {
      "subredditName": "OpenAI"
    },
    "name": "OpenAI Reddit"
  }
}

Response:

{
  "type": "REDDIT",
  "id": "266fa32b-98ea-44a9-8f8d-1874ade413f3",
  "name": "OpenAI Reddit",
  "state": "ENABLED"
}

Last updated