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

GraphQL AttributeError: module 'graphene' has no attribute 'Heroes'

i am a beginner with Django & GraphQL, i had a problem the at first step, i can not reach to GraphiQL, i had an error Could not import 'traindjango.schema.schema' for Graphene setting 'SCHEMA'. AttributeError: module 'graphene' has no attribute…
Lukas
  • 1
  • 1
0
votes
1 answer

GraphQL Query returns null objects both in GraphiQL and App from JSON data source

I'm trying to get my mocked JSON data via GraphQL in Gatsby. The response shows the correct data, but also two null objects as well. Why is it happening? I'm using the gatsby-transformer.json plugin to query my data and gatsby-source-filesystem to…
mattg
  • 3
  • 2
0
votes
1 answer

Invalid response of GraphQL request via CORS and valid response via GraphiQL processing authentication with JWT

The problem is that I always receive a 400 response code without any payload. Even something goes wrong graphql passes with code 200 and payload with error block. That fact, that GraphiQl works fine, tells me that settings and schema are correct.…
0
votes
1 answer

Graphiql playground in a .Net Framework Web API

How do we implement a Graphql Playground in ASP.NET Framework Web Application? I was able to query using Postman's new GraphQL POST and it is working as expected. But I was not able to host the graphiql playground using HotChocolate's AspNet Classic…
Pragyan93
  • 701
  • 2
  • 9
  • 18
0
votes
1 answer

How to pass Data from graphicQL to React component with gatsby?

I am trying to pass the Images through GraphicQL to my Banner component, which is a fragment component.. This code worked in my index.js but does not work when i try to create a new component. I tried with class componennt aswell but same…
Mrjoes
  • 25
  • 1
  • 7
0
votes
1 answer

Inserting a large stringed JSON as an input to a mutation GRAPHQL

I get a large stringified JSON from the client. I would like to use this JSON in order to create items in my DB. I have a mutation that gets this Json as a string. Inside the mutation I parse the json and than use it to fill out my DB. I get an…
Contentop
  • 1,163
  • 3
  • 20
  • 43
0
votes
1 answer

Configuring GraphiQL for AWS App Sync end point with AWS token authentication

I am trying to learn GraphQL and I created an App Sync service in AWS, I am using the GraphiQL (Playground) client App, and I cannot get the header correct for the authentication, I keep getting unauthorized error. How do I structure the Header JSON…
Phil
  • 35
  • 4
0
votes
1 answer

Class 'App\GraphQL\Query\GraphQL' not found Error although included in config/app - service provider and aliases

Unable to process queries in graphql as included classes is reported as not found I am using Laravel version 5.8.8 with graphql plugin provided by https://github.com/rebing/graphql-laravel 'GraphQL' =>…
0
votes
0 answers

Is there a way to access graphql endpoint from rest api class using java?

Can we create and execute the graphql queries from POJO class? I have gone through multiple links but unable to find any where we can set the URL in java class to access graphql endpoint. I have added graphql plugin to neo4j community edition.
0
votes
0 answers

Apollo-react query returns null when GraphiQL returns data

The same query in GraphiQL returns data, but returns null in React-Apollo. Problem (so far) is only with this query. I've used a "Signup" mutation that returns data when tried from both React-Apollo and GraphiQL. This leads me to think the problem…
0
votes
1 answer

GraphQL returning null

I am trying to make a simple modularized Node.js application using GraphQL to learn it a little bit. I implemented a couple of types and tried to play with them in the GraphiQL without much success. Here is a minimal non-working example.…
Masiar
  • 20,450
  • 31
  • 97
  • 140
0
votes
1 answer

Graphql multiple arguments in field

I'm using GraphQL. I'm able to pass one argument in a field. But I would like to know how to pass multiple arguments to a field. This is my code: GraphlQL Object type: Price availability const priceAvailability = new GraphQLObjectType({ name:…
Elvira
  • 1,410
  • 5
  • 23
  • 50
0
votes
1 answer

Use Apollo Client or Isomorphic Fetch with GraphiQL

I am trying to integrate the GraphiQL IDE into my website and am wondering if I can get some advice on whether I would be best using the Apollo Client that the rest of the site uses or using Isomorphic Fetch as recommended in the documentation. If…
Exitialis
  • 411
  • 6
  • 26
0
votes
1 answer

Graphiql variables not being passed to server

I'm building an Apollo Server. I have one simple endpoint communicating with Mongo. There's a collection of announcements. export const typeDefs = gql` type Query { announcements: [Announcement] announcementsByAuthor(author: String!):…
natep
  • 126
  • 4
  • 13
0
votes
2 answers

Graphiql structure queries/mutations by categories

I am wondering is there any way of structuring graphql queries/mutations in a GraphiQL ide. Right now I have long list of queries/mutation in docs tab (see image below). What I want is to seperate them by categories (like users, customers, interns…
yerassyl
  • 2,958
  • 6
  • 42
  • 68