diff --git a/README.md b/README.md index 6754db5..d1e7c40 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ const Fastify = require('fastify'); const arrowPlugin = require('fastify-arrow'); const fastify = Fastify().register(require('fastify-arrow')); const { + tableFromArrays, tableFromIPC, vectorFromArray, Utf8Vector, FloatVector, RecordBatchStreamWriter, @@ -64,7 +65,7 @@ fastify.get(`/data`, (request, reply) => { }); (async () => { - const res = await fastfiy.inject({ + const res = await fastify.inject({ url: '/data', method: `GET`, headers: { 'accepts': `application/octet-stream` } @@ -110,7 +111,7 @@ fastify.post(`/update`, (request, reply) => { }); (async () => { - const res = await fastfiy.inject({ + const res = await fastify.inject({ url: '/update', method: `POST`, headers: { 'accepts': `text/plain; charset=utf-8`, 'content-type': `application/octet-stream` @@ -133,7 +134,7 @@ fastify.post(`/avg_floats`, (request, reply) => { (async () => { const writer = RecordBatchStreamWriter.writeAll(demoData()); - const averages = await fastfiy.inject({ + const averages = await fastify.inject({ url: '/avg_floats', method: `POST`, payload: writer.toNodeStream(), headers: {