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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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