Query Github Security Advisory

Can someone share sample curl command to query GHSA DB
Am find it very hard due to lack of proper illustrations in Github documentation page
Am looking for fetching publishedat data for given GHSA id

curl -H “Authorization : Bearer token” -X POST https://api.github.com/graphql -d@queryfile

query {
securityAdvisory(ghsaId: “GHSA-grg4-wf29-r9vv”) {

I am naive to graphql so not comfortable with framing queries
I would also prefer if there is a rest support available, with swagger interface to play around.