Questions tagged [graphiql]

GraphiQL is a graphical user interface for editing and testing GraphQL queries and mutations.

GraphiQL is a open source GraphQL integrated development environment (IDE). It’s a powerful (and all-around awesome) tool you’ll use often while building GraphQL API's.

GraphiQL Documentation

216 questions
20
votes
3 answers

GraphiQL - upload file

How can we upload files using in-browser GraphQL IDE GraphiQL, is that even possible ? (apart from base64 encoded string) Once I have the file stream / file contents I can create a mulipart request and store on DB or some object-storage service. But…
user2608576
  • 747
  • 2
  • 7
  • 17
15
votes
2 answers

GraphQL Conditional Queries

I'm a newbie in GraphQL and I was wondering if there is a easy way to query with "dynamic conditions". For exemple, on GraphiQL I can query for : query { users{ name age } } And It will bring me a list of all users { "data": { …
Luis Coimbra
  • 171
  • 1
  • 1
  • 8
10
votes
3 answers

GraphiQL: How to populate all fields

Is there a way (or a shortcut) to populate all fields of a Query? Let's take https://graphql.org/swapi-graphql/ as an example. I know that by ctrl + space I can invoke the autosuggest. But what if I wanted to populate all of the fields (name,…
Dimo
  • 467
  • 6
  • 13
10
votes
1 answer

GraphQL and Spring Boot 2.0.3

I want to test GraphQL in a project that also uses Spring Boot, Spring Security; and I hope to use the latest [as of writing] Spring Boot 2.0.3.RELEASE. As described in more detail below, I found that an older version of GraphQL along with an older…
Jonas Wolff
  • 203
  • 1
  • 4
  • 11
10
votes
1 answer

Which syntax for filtering queries in Graphiql?

New to graphql and started playing with graphiql. I have a Product data type type Product { _id: String name: String price: Float } I have mongodb populated with some products { "_id" : ObjectId("5a61b31e009c0bef5d724a47"), "name" :…
kranz
  • 599
  • 1
  • 6
  • 23
7
votes
3 answers

Graphql mutation error: "Field 'createUser' is missing required arguments: input"

I'm trying to follow along this article on how to create a mutation on a rails server using GraphQl https://www.howtographql.com/graphql-ruby/4-authentication However, I'm stuck at the CreateUser Mutation step, I get the follow error hash when…
Hugo
  • 2,073
  • 6
  • 23
  • 46
7
votes
2 answers

Django Graphene, Passing JSON or dict data as input for Mutation

I have the following situation: I have a User, each user has a Inventory. I'm struggling to declare the user's inventory in the Mutation "CreateUser". Here is the following mutation for creating the user: mutation Create{ …
Icaro Amorim
  • 385
  • 1
  • 3
  • 13
6
votes
2 answers

Upgrade GraphQL from .NET core 2.2 to 3.0

I am new to GraphQL, when I try to upgrade .net core version from 2.2 to 3.0 I got problem about UI display on /graphql page when using UseGraphiQl API is working normally but the UI is display incorrect. I googled for find out solutions, but…
Tan Sang
  • 1,897
  • 1
  • 16
  • 28
5
votes
4 answers

How to authenticate through Graphiql playground

It's my first time using GraphQL and im trying to access the content of a given query but i can't acces this given query because of lack of permissions, in this case I have been given a username and a password to access this GraphQL api, and i'm…
Shistastic
  • 99
  • 1
  • 1
  • 12
5
votes
2 answers

How to use arrays Schema Types for GraphQL

Trying out GraphQL for the first time, and I'd like for one Schema Type to have access to an array of objects within another Schema Type. I'm using local data and lodash to test this before I wire it up to MongoDB. I'm getting a few errors regarding…
Aaron Toliver
  • 187
  • 1
  • 3
  • 16
5
votes
2 answers

Is there a way to pass a fragment to graphiql?

It's possible to pass a query, but apparently not a fragment: server.use('/graphiql', graphiqlExpress({ endpointURL: '/graphql', query: `# Welcome to GraphiQL query PostsForAuthor { author(id: 1) { firstName posts { title …
Jeff Lowery
  • 2,492
  • 2
  • 32
  • 40
4
votes
1 answer

Spring boot GraphQL showing 404

I am new to GraphQL. However, after watching couple of videos and GraphQL blogs I decided to give it a try but I am getting "404 error" even after doing exactly the same thing as in those videos/blogs. Could this be because of "I am using a little…
rens
  • 89
  • 2
  • 9
4
votes
1 answer

What is the "Merge" Button in GraphiQL?

What is the purpose of the Merge button in GraphiQL UI. It seems to be doing the same thing as the Prettify button. Please provide an example
4
votes
2 answers

Django graphene GraphiQL page not loading when running from Uvicorn

Not sure what I set wrong but I am not getting the graphiql interface when running in uvicorn using uvicorn mysite.asgi:application: [32mINFO[0m: Started server process [[36m14872[0m] [32mINFO[0m: Waiting for application…
ccsv
  • 8,188
  • 12
  • 53
  • 97
4
votes
1 answer

GraphQl variable using grapiql - variable is undefined

I am using this endpoint: @PostMapping("graphql") public ResponseEntity getResource(@RequestBody Object query) { // String query ExecutionResult result; if (query instanceof String) { result =…
tryingHard
  • 1,794
  • 4
  • 35
  • 74
1
2 3
14 15