Skip to content

Add URL query for sharing GraphQL+- queries. #171

@MichelDiz

Description

@MichelDiz

A simple and easy way to share queries is via URL querying. This is useful to ask for help sharing the URL and not run into problems with incompatible characters added by some sanitizing process (e.g. Discuss adds some characters sometimes that isn't compatible with Ratel o Dgraph's parser).

We could optionally use something like a base64 URL query instead of giant URLs like the examples below.

e.g:

GraphiQL
http://graphql.org/swapi-graphql?query=%7B%0A%20%20allFilms%7B%0A%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D

SPARQL https://query.wikidata.org/#%23Cats%0ASELECT%20%3Fitem%20%3FitemLabel%20%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP31%20wd%3AQ146.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D

Metadata

Metadata

Assignees

Labels

kind/featureSomething completely new we should consider.status/acceptedWe accept to work on it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions