Command
curl -X POST http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ posts(search: \"GraphQL\") { id title content } }"}'
Explanation
Fetches posts containing a specific keyword. Useful for search functionality in blogs or apps.
Examples
Search posts with Elasticsearch keyword
{ posts(search: \"Elasticsearch\") { title } }