Input in search query string

will a $[input] work in a query string similar to below.? I want to replace query:‘The Outsider’ with query: $[input] and place the ‘The Outsider’ in the body of a postman post request.

var query = {
query: {
match: {
title: {
query: ‘The Outsider’,
},
},
},
};

var response = await client.search({
index: index_name,
body: query,
});