Blogs Infinispan Node.js client supports query

Infinispan Node.js client supports query

Node.js Client 0.10.0

Infinispan Node.js client version 0.10.0 was released last week with added support of query with application/x-protostream data format. Up until now, our Node.js client only supported text/plain and application/json data formats.

application/x-protostream data format

You can now use the application/x-protostream data format for all the Hot Rod operations supported in js-client. To make the Node.js client backwards compatible, the client still treats key/value pairs as String by default.

query

The Hot Rod js-client now also supports query method to perform queries on caches. For more information about querying infinispan caches, refer to the query documentation.

Important
You must set the data-format as application/x-protostream to perform queries on your cache.

For the working code example of the query feature, please refer to this.

To go further

Full client documentation is now available in the Hot Rod JS Client Guide.

Jira tracker for this client is available here.

Get it, Use it, Ask us!

We’re hard at work on new features, improvements and fixes, so watch this space for more announcements!

Please, download and test the latest release.

The source code is hosted on GitHub. If you need to report a bug or request a new feature, look for a similar one on our GitHub issues tracker. If you don’t find any, create a new issue.

If you have questions, are experiencing a bug or want advice on using Infinispan, you can use GitHub discussions. We will do our best to answer you as soon as we can.

The Infinispan community uses Zulip for real-time communications. Join us using either a web-browser or a dedicated application on the Infinispan chat.

Neeraj Gartia

Neeraj is a student developer at JBoss for the Google Summers of Code 2022. He has been contributing to the nodejs client of infinispan.