Skip to main content Link Search Menu Expand Document (external link)

Pipes

Query existing Pipes with this method:

// Initialize sdk
import tb from 'tinybird-sdk';
tb.init('p.eyJ1IjogIjZhNTdkYzFlCTM2ZTItNDNlYy04ZWRi...');

// Query pipe
const { meta, rows, statistics } = await tb.queryPipe(pipeName);

// Query pipe with parameters
const { meta, rows, statistics } = await tb.queryPipe(pipeName, {
    age: 50
});

Copyright © 2022 Alejandro Martín. Distributed by an ISC license.