snippets.subscribeEq() — supabase Function Reference
Architecture documentation for the snippets.subscribeEq() function in Snippets.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Docs/Snippets.ts lines 225–244
subscribeEq: (listenerName: string, resourceId: string, columnName: string, value: string) => ({
title: 'Subscribe to specific rows',
bash: {
language: 'bash',
code: `# Realtime streams are only supported by our client libraries`,
},
js: {
language: 'js',
code: `
const ${listenerName} = supabase.channel('custom-filter-channel')
.on(
'postgres_changes',
{ event: '*', schema: 'public', table: '${resourceId}', filter: '${columnName}=eq.${value}' },
(payload) => {
console.log('Change received!', payload)
}
)
.subscribe()`,
},
}),
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free