I'm just starting with Fastify and ran into an issue where I started creating a get request to get an item by its title, but it keeps giving me a response of null when I try and log the request.body.
My get request:
// Get points by title
fastify.route({
    method: 'GET',
    url: '/pointz/title',
    handler: (request, reply) => {
        return request.body
    }
})
My get request in postman (as code):
curl --location --request GET 'http://localhost:3000/pointz/title' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "test"
}'
Screenshot of my input and output in Postman
The expected result would be that the request returns a body that contains the JSON that's being sent, so I can change the code to access request.body.title with a return value of test.
UPDATE: Found a workaround for now. If I change the GET request to a POST request it works just like it's supposed to. I question however if this is considered good practice.
 
    