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
0
votes
1 answer

Rails 6 API mode GraphiQL shows 404?

I have a rails 6 app in api mode and I'm implementing a v2 of the api to include graphQL. I can make queries in postman just fine but when I goto http://localhost:5000/api/v2/graphiql/ I get the pretty interface but all my queries return a 404 like…
Josh Wren
  • 338
  • 2
  • 12
0
votes
1 answer

GraphIQL Set URL Endpoint of Server

I've spent the last hour or so looking through the GraphIQL guides and readme's. I don't see any documentation about how to direct the client to a specific endpoint/port. I am runni I am running graphiql from the root of the project, locally. I have…
user3738936
  • 936
  • 8
  • 22
0
votes
1 answer

Graphiql (GraphQL UI) not loading in Chrome but works in Firefox and Safari

I'm not sure what changed in Chrome but the Graphiql GUI tool is not loading. In Firefox and Safari it works just fine. I have disabled all Chrome extensions, restarted Chrome, and restarted my Mac. The error persists. How do I debug this? In…
Loading...
  • 863
  • 9
  • 21
0
votes
0 answers

GraphQL returns null on successful mutation INSERT SQL instead of a value

const resolver= { Query: { EventsQuery: async () => { return await db.select('*').from('events') }, }, Mutation: { AddEventMutation: async (_: any, input) => { return await…
calvert
  • 631
  • 10
  • 33
0
votes
1 answer

All fields and parameters marked as non-null in Graphiql : Sangria, scala

I am not able to use postman to query a graphql server written in scala using its sangria library. I get a request malformed error in postman if I use the content-type as "application-json" and if I use plain text I get content type not supported.…
0
votes
0 answers

Unable to filter custom data in siteMetaData in Gatsby using GraphQL in GraphiQL

I've created a basic Gatsby site with the default starter. I'm now trying to add some custom data (the people array) to gatsby-config.json like so: module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `XXX`, …
Frank W. Zammetti
  • 1,231
  • 1
  • 11
  • 19
0
votes
0 answers

How to access nested values inside graphQL page query

I am using Gatsby with WordPress, and the native page permalinks/slugs are not carrying over to graphql properly after modifying them. (ie. old one are still cached) I have this query that where I need to access not the outer slug but "slug inside…
Theorder
  • 669
  • 2
  • 9
  • 19
0
votes
1 answer

Graphql Ruby - Cannot read property 'types' of undefined at buildClientSchema - rails 6 API only

I get this error on load when I try to load the graphiql client with Rails 6, specifically wanting to use the Documentation Explorer. TypeError: Cannot read property 'types' of undefined at buildClientSchema…
user2498045
  • 141
  • 1
  • 5
0
votes
1 answer

Cannot query field `XXX' on type `QueryRoot'." (Lacinia Clojure library for GraphQL)

I'm just trying to figure out GraphQL in Clojure using Lacinia with a simple "wiki" app. The app. has Pages which are sequences of Cards. And the API can return either a raw text version of the page, or a sequence of Card objects. Here's my schema…
interstar
  • 26,048
  • 36
  • 112
  • 180
0
votes
1 answer

Entering custom data into GraphiQL Docs

I would like to use GraphiQL docs to document my GraphQL API. The out-of-the-box version already looks pretty useful, however I would like to enrich it by the information about permissions. My imagination is that in this there will be another…
karlosss
  • 2,816
  • 7
  • 26
  • 42
0
votes
1 answer

How to use GrahpiQL to upload file in grahpql?

I am a newbie in graphql and I am trying to create a sever which will take few parameters and a few files (like images) as parameters in mutation. I am using graphql-yoga and it is very clear how to implement it using graphql-yoga. My question is…
dash
  • 89
  • 1
  • 8
0
votes
1 answer

GRAPHQL find items based on Enum

I am trying to find the results that match a certain enum, this is my type : type User { id: ID! @id fname:String! lname:String! email:String! @unique password: String school_ID: String #@relation(Link: INLINE) role: [Role]…
jwknz
  • 6,598
  • 16
  • 72
  • 115
0
votes
1 answer

DotNet Core's GraphQL casting parameter value to integer

I'm using graphql-dotnet (dotnet GraphQl) for implementing GraphQL in DotNet Core 2.1. I have the following classes: public class Customer { public int Id { get; set; } public string Name { get; set; } } public class CustomerInputType :…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
0 answers

Unable to fetch record from postman using graphql_base module

while use graphiql in browser its works.But while using in postman unable to fetch. how to pass authorization token with requests if there is way where to fetch authorization token from this module { "jsonrpc": "2.0", "id": null, "error": { …
0
votes
1 answer

Errors show correctly on Graphiql but not returned to Apollo Client in react front end

I purposely left the name field blank ("") so that I can test my custom error form checking on the GraphQL backend. Using Graphiql, the errors array shows up nicely. (String! only prevents null, not "".) Can anyone explain why errors do not get to…
Adrian Bartholomew
  • 2,506
  • 6
  • 29
  • 37