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

GraphiQL 404 page not found

Based on this Shopify documentation, I'm trying to execute this GraphQL query: query getDiscount($code: DiscountCodeSortKeys) { priceRules(first: 1) { edges { node { discountCodes(first: 1, sortKey: $code) { edges { …
Amir Nassal
  • 409
  • 2
  • 7
  • 22
2
votes
1 answer

graphQL mutation with parameters gives error : validation failed variables are not allowed in scalars

I use Hasura and a PostGres DB. Here is the GraphQL mutation mutation submitBeacon($thing_uid: Int, $x: Int, $y: Int, $z: Int){ insert_conf_thing(objects: [{thing_uid: $thing_uid, my_coordinates: {type: "Point",…
Sèb
  • 471
  • 2
  • 7
  • 17
2
votes
0 answers

Customization of GraphiQL interface in Spring-Boot project

According to the GraphiQL README I can customize the interface by adding React children like this: My Custom Logo That is great, but how do I actually set these children? I'm not a web developer and I've never…
Josh
  • 4,894
  • 6
  • 34
  • 42
2
votes
1 answer

How do you view all available child fields in GraphiQL?

Let's say I have a field called featuredImage. If I start typing "id," for example, it will show that as an available sub field using autocomplete. But what if you don't know what the sub fields are? { featuredImage { // What fields are…
AO Folts
  • 499
  • 1
  • 4
  • 12
2
votes
2 answers

Cannot read property 'startsWith' of undefined at Object.renderGraphiQL

i was going through a GraphQL tutorial from udemy, https://www.udemy.com/introduction-to-graphql-and-apollo-building-modern-apis And i was going through the guide to operating graphql and graphiql -> apollo -express - server. And got this. This…
user9630712
2
votes
1 answer

GraphQL variables are not used in the mutation

My mutation query: mutation ($matchId: String!) { assignMatch(matchId: $matchId) { id } } Query variables: { "matchId": "123" } GraphQL schema (Mutation definition): type Mutation { assignMatch(matchId: String!): Assignment } GraphQL…
Bogdan Kobylynskyi
  • 1,150
  • 1
  • 12
  • 34
1
vote
0 answers

Why does GraphiQL not show the "data" property, but just the "errors" property for Subscriptions?

When executing a Subscription via GraphiQL (v 1.5.1) which throws an error, but also contains data, why doesn´t GraphiQL show the data? And how to achieve this? In the following screenshot it can be seen that the payload of the websocket message…
marvinfrede
  • 1,055
  • 5
  • 12
1
vote
0 answers

GraphiQL doesn't show 'date' or allow 'formatString' function in the browser Schema documentation explorer

I'm following the Gatsby tutorial in utilising its GraphQL data layer and there seems to be a mismatch between the commands they're outlining versus what's available in my own browser GraphiQL explorer. Gatsby tutorial and their code snippet: Under…
1
vote
1 answer

How to show GraphiQL Explorer by default?

I'm deploying a GraphiQL instance (in Laravel with https://github.com/mll-lab/laravel-graphiql) and it's working so far, but I want to show the GraphiQL Explorer by default to the users. Any idea how to do this with below code? ` function…
1
vote
0 answers

Regarding the keycloak url not being displayed through react app sign in for a client

enter image description here Failed to parse source map from 'C:\Users\admin\Desktop\KeycloakApp\login-app\node_modules\@react-keycloak\web\lib\@react-keycloak\web\withKeycloak.tsx' file: Error: ENOENT: no such file or directory, open…
1
vote
2 answers

fetching data from graphql api in nextjs app

i am trying to to query data from graphql endpoint but i receive ApolloError: Unexpected token < in JSON at position 0 import { ApolloClient, InMemoryCache } from "@apollo/client"; const client = new ApolloClient({ uri:…
1
vote
0 answers

Dynamically modify GraphQL schema and see updated schema with GraphiQL

I have a GraphQL schema: enum CustomType { Foo Bar } But I need to add enum items from my database. For that, I have made a Visitor that modify the schema model during runtime: @Configuration(proxyBeanMethods = false) class GraphQlConfig { …
Oromis
  • 196
  • 2
  • 13
1
vote
0 answers

graphiql interface shows no results, but query returns valid response

I googled a bit, but couldn't find anyone else complaining about this issue. I am using amplify mock to test GraphQL queries locally. Everything works as expected, mutations do insert data to Sqlite DB just fine, however query results do not show in…
1
vote
0 answers

Validation error of type FieldUndefined: Field 'XXX' in type 'QueryType' is undefined, when saving GraphQL query in AEM

I am trying to save a persisted query in AEM's GraphiQL Explorer. I can run the query fine, as seen on the right side. But if I try "Save As", I get the following error. "Validation error of type FieldUndefined: Field 'adventureList' in type…
Sean
  • 508
  • 6
  • 20
1
vote
1 answer

How can i get a Remote Mirror gitlab in Graphiql

Is there any way to list the mirrored gitlab repositories using Graphiql ? I'm listing the projects name and url and I need to include the mirrors in the list.