Query and List Feeds
Feed: Query and List Feeds
User Intent
Operation
TypeScript (Canonical)
import { Graphlit } from 'graphlit-client';
import { EntityState, FeedTypes } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
// Query all feeds
const allFeeds = await graphlit.queryFeeds();
console.log(`Total feeds: ${allFeeds.feeds.results.length}`);
allFeeds.feeds.results.forEach((feed) => {
console.log(`- ${feed.name} (${feed.type}): ${feed.state}`);
});
// Query specific feed types
const slackFeeds = await graphlit.queryFeeds({
types: [FeedTypes.Slack],
});
console.log(`\nSlack feeds: ${slackFeeds.feeds.results.length}`);
// Search by name
const docFeeds = await graphlit.queryFeeds({
search: 'Documentation',
});
console.log(`\nDocumentation feeds: ${docFeeds.feeds.results.length}`);
// Get specific feed by ID
const feedId = 'feed-id-here';
const feed = await graphlit.getFeed(feedId);
console.log(`\nFeed: ${feed.feed.name}`);
console.log(`Type: ${feed.feed.type}`);
console.log(`State: ${feed.feed.state}`);Query all feeds (snake_case)
Query by type
Get specific feed
Parameters
queryFeeds (Optional Filter)
getFeed (Required)
Response
queryFeeds
getFeed
Developer Hints
Feed States
Find Feed by Name
Filter by Type
Check Feed Details
Variations
1. List All Feeds
2. Filter by Type
3. Search by Name
4. Get Feed Details
5. List Active Feeds Only
6. Feed Inventory Report
Common Issues
Production Example
Last updated