graphql / graphql/graphql-over-http

Add `application/graphql-request+json` media type?

Open
#415 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
427
Forks
70
Avg merge
1m
Merged PRs (30d)
5

Description

Follow up from https://github.com/graphql/graphql-over-http/pull/215#issuecomment-5044418411
See also https://github.com/graphql/graphql-over-http/issues/249

GraphQL servers have used `application/json` for the requests, basically forever.

If a server supports several query languages, it cannot easily disambiguate.

This issue is to gather interest for a specific `application/graphql-request+json` media type for GraphQL requests:

```
QUERY /graphql HTTP/1.1
Content-Type: application/graphql-request+json

{
"query": "query GetUser($id: ID!) { user(id: $id) { name } }",
"variables": { "id": "42" },
"operationName": "GetUser"
}
```

If you have such a use case, please comment bellow

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the linked pull request 215 and issue 249 first, then review the proposed application/graphql-request+json example and the stated multi-query-language use case. Done means reaching a decision on whether this media type belongs in the GraphQL over HTTP specification, with the issue documenting the outcome.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.