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
4
votes
2 answers

how to use graphiql when route are secured?

i have an application based on api-platform with secured route using JWT (and the LexikJWTBundle). With the Swagger interface it's easy to call secured route providing a valid bearer. But with GraphiQL i don't see anything about security so when a…
Rebolon
  • 1,257
  • 11
  • 29
4
votes
2 answers

In GraphQL/Rails how to pass arguments in the query_type?

So I'm trying to query on a single user within the database but end up getting: "Field 'userSingle' doesn't accept argument 'first_name'" I'm getting that in GraphiQL when I run the following query: query GetSingleUser { userSingle(first_name:…
Jake
  • 1,328
  • 1
  • 21
  • 51
3
votes
1 answer

How to Enable HTTP Headers Tab in GraphiQL

I am new to GraphQL and have built a simple API using express and express-graphql. When I run my server and go to http://localhost:5000/graphql in the browser I see GraphiQL and can make basic queries. I want to set the HTTP headers of a request…
Reno
  • 1,039
  • 3
  • 14
  • 22
3
votes
0 answers

How to use graphiql-explorer with express-graphql

I ran the express-graphql by this code. var { graphqlHTTP } = require('express-graphql'); var { buildSchema } = require('graphql'); // Construct a schema, using GraphQL schema language var schema = buildSchema(` type Query { hello: String …
gz89
  • 532
  • 3
  • 18
3
votes
2 answers

Gatsby graphiQL - Cannot return null for non-nullable field ImageSharpFluid.src

I'm using Gatsby and graphql with headless WordPress for a website. I want to use a gatsby-image plugin to get srcSet and blurring effect for images that are coming from WordPress, but it throws an error in graphiQL playground. I want to explain…
3
votes
0 answers

How to display orders from Graphiql object in a Polaris DataTable

I'm working on an app that will list our open orders in shopify, so we can arrange them by delivery date. I have lots of experience in html and liquid coding, but am very new to app coding with polaris, and I'm struggling (understatement) to pass…
MR_TruB
  • 31
  • 1
3
votes
1 answer

no schema available graphiql aspnet core

I have my repo at https://github.com/nmarun/customergraph. When I run the application, I don't see any schema in the document explorer. I see a 404 when I look at the Network tab. I think I need to configure GraphiQl to call the /graphql endpoint…
Arun
  • 1,015
  • 1
  • 11
  • 26
3
votes
1 answer

Prettify GraphiQL query: filter always formatted in one long unreadable line

I prettify my GraphQL query in the GraphiQL window of my browser. I use the Gatsby GrapiQL implementation. The filter part is always condensed in one long line so that I have to use the horizontal scroll bar. This has been bugging me for months…
EliteRaceElephant
  • 7,744
  • 4
  • 47
  • 62
3
votes
1 answer

Prevent Graphiql console from issuing multiple introspection queries

I am using the Graphiql component to render a console and want to fetch the schema via an introspection query. The problem is that if the component re-renders before the first introspection query is resolved (say a modal is opened for example), a…
stoebelj
  • 1,536
  • 2
  • 14
  • 31
3
votes
2 answers

GraphQL/ Rails 422 Unprocessable Entity - Saving token to Session

I’m currently working on changing the rails backend of a project from REST to graphql and I’m running into an error with authentication following their tutorial - https://www.howtographql.com/graphql-ruby/4-authentication/ I’m using the GraphiQL…
Pio
  • 31
  • 1
  • 4
3
votes
1 answer

Querying graphiql leads Apollo error forward is not a function

I have an express back-end with GraphQL that works when I go to /graphiqland manually perform some searches. My React front-end is trying to perform a search on the back-end. The following code should perform the query asynchronously: const data =…
Masiar
  • 20,450
  • 31
  • 97
  • 140
3
votes
0 answers

Express.js, apollo-server Playground, Route error "Not found" but it works

I have a problem with my express app: https://glitch.com/edit/#!/enthusiastic-velociraptor When I navigate to GET /graphql it gives me Playground but in console I have a Not found Why? Reproducible with these steps: go to:…
Fred Hors
  • 3,258
  • 3
  • 25
  • 71
3
votes
2 answers

Incompatibility Spring Boot 2 and GraphQL

I want to check out Spring Boot 2 and GraphQL. My pom.xml looks like: graphql Demo project for Spring Boot with GraphQL org.springframework.boot spring-boot-starter-parent
Jonas Wolff
  • 203
  • 1
  • 4
  • 11
3
votes
1 answer

Graphiql app shows extra garbage characters

I recently deployed the graphiql web app onto an embedded device that I work with and the page is marked up with extra accented "A" characters. What could be causing this? Details: This happens in both Linux Chromium and Windows Chrome. Linux…
goertzenator
  • 1,960
  • 18
  • 28
3
votes
1 answer

Trying to do Graphql mutation on Graphiql

So I am trying to carry out a mutation on graphiql but keep getting this error: here is my setup: Schema: import { GraphQLInt, GraphQLString, GraphQLList, GraphQLObjectType, GraphQLNonNull, GraphQLSchema, } from 'graphql'; import * as _ from…
R.Thompson
  • 141
  • 1
  • 12
1
2
3
14 15