Skip to content

Commit

Permalink
Update http.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekwuno authored Sep 10, 2024
1 parent 8fc3b98 commit 6f6fd3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The GraphQL endpoint enables use of GraphQL queries to interact with your data.

### Example usage
```bash title="Request"
curl -X POST -u "root:root" -H "NS: mynamespace" -H "DB: mydatabase" -H "Accept: application/json" -d '{"query": "{ person(filter: {age: {age_gt: 18}}) { id name age } }"}' http://localhost:8000/graphql
curl -X POST -u "root:root" -H "surreal-ns: mynamespace" -H "surreal-db: mydatabase" -H "Accept: application/json" -d '{"query": "{ person(filter: {age: {age_gt: 18}}) { id name age } }"}' http://localhost:8000/graphql
```

```json title="Response"
Expand Down

0 comments on commit 6f6fd3f

Please sign in to comment.