3

elasticsearch/8/rename-query-string

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod renames the query key to querystring and changes the body key to bulkBody in client.transport.request.

What Changed

Previously, the query key was used for query parameters and body was used for the request body in client.transport.request. Now, you need to use querystring for query parameters and bulkBody for the request body.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.