Create Reddit Feed
User Intent
Operation
Code Example (TypeScript)
import { Graphlit } from 'graphlit-client';
import { FeedTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const feed = await graphlit.createFeed({
name: 'r/MachineLearning',
type: FeedTypes.Reddit,
reddit: {
subredditName: 'MachineLearning',
readLimit: 100,
},
// Optional: add workflow for content processing
// workflow: { id: workflow.createWorkflow.id }
});
console.log(`Created Reddit feed: ${feed.createFeed.id}`);Configuration
Reddit API Setup
What Gets Synced
Last updated