Skip to content

Add application/graphql-request+json media type? #415

Description

@martinbonnin

Follow up from #215 (comment)
See also #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions