Questions tagged [graphql-playground]
52 questions
1
vote
1 answer
How to send byte array (Blob) to GraphQL mutation
We have a GraphQL mutation with a byte array (Blob) field. How can I use tools like Insomnia or GraphQL playground to send byte array data to test the API?
mutation {
saveSomething(something: {
contentByteArray: [97, 110, 103, 101, 108, 111]
…

angelokh
- 9,426
- 9
- 69
- 139
0
votes
0 answers
How can I keep the GraphQL Playground updated with my app's authorization headers?
I have integrated a GraphQL server into my Express application. To ensure security, my requests are protected, and I have to update the authorization header in the GraphQL Playground every few hours. However, constantly updating the authorization…

Rishab Gupta
- 561
- 3
- 17
0
votes
0 answers
GraphqlPlayground::Rails::Engine Server cannot be reached on Heroku
Locally GraphQL Playground is running fine, but when deployed to Heroku it starts to show error message below as well as 'Server cannot be reached' status.
When I try to call queries and mutations they are working as expected, but error is still…

user5922898
- 7
- 5
0
votes
0 answers
How to expand graphql fragments in order to make it more readable
I have to work with a bunch of graphql queries in the graphql playground, that get really convoluted like so:
query SomeQuery{
someField
someOtherField
...someTopLevelFragment
...someOtherTopLevelFragment
}
fragment…

LeedMx
- 424
- 4
- 19
0
votes
1 answer
How to send multiple query variables using GraphQL Playground
If I have one variable named $external and one named $manifest, which should be JSON, how do I define them both as query variables in the GraphQL Playground?
{
"external": "name",
"manifest":
{
"some": "json",
}
}
This gives me an…

suchapalaver
- 13
- 6
0
votes
1 answer
Why can I not run Playground in Gatsby 5 as it was in Gatsby 4 using GATSBY_GRAPHQL_IDE=playground gatsby develop?
I'm trying to run Graphql Playground in Gatsby.
My config:
"scripts": {
"develop": "GATSBY_GRAPHQL_IDE=playground gatsby develop",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby…

madfcat
- 74
- 1
- 9
0
votes
1 answer
Simplest usage of GraphQL using WHERE, AND, OR while using a Query Parameter
I'm creating a search query for a simple search on a site using GraphQL.
I've been looking for the absolutely simplest working examples of GraphQL but the questions/examples I've found on Stack Overflow are either too simple, too specific, or way…

Andrew Chung
- 417
- 4
- 15
0
votes
1 answer
How to disable strapi graphql playground on production mode
I've added this snippet into ./config/plugins.js
module.exports = {
graphql: {
enabled: true,
config: {
endpoint: "/graphql",
shadowCRUD: true,
playgroundAlways: process.env.NODE_ENV === "development",
depthLimit:…

Sarah Diba
- 87
- 1
- 9
0
votes
1 answer
How can I call mutation in GraphQL playground?
My schema looks like this within the yellow coloured square in the image below
And the code on the left side doesn't really work.
How can I call this in GraphQL playground?
Appreciate your answer in advance!

idhxx
- 45
- 5
0
votes
0 answers
How to authenticate in a GraphQL playground
I'm working for someone and writing GraphQL queries in GraphQL playground for them. I'm new to GraphQL and have just learned writing queries.
Suddenly they put authentication in GraphQL playground. And sent me a text which goes something like…

Abdul Rehman
- 11
- 3
0
votes
0 answers
How to delete user on strapi v4 with GraphQL
I don't know why but everytime I can't delete any user on graphQL playground, its always forbidden access. I checked "destroy" on setting >> role >> userpermission and put koen bearer but still didn't work,
Here is what my code on…
user18428830
0
votes
1 answer
How to use GraphQL Playground or Appolo Sandbox with Nest.js microservice?
I have a microservice:
import { NestFactory } from '@nestjs/core';
import { MicroserviceOptions, Transport } from '@nestjs/microservices';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await…

PierreD
- 860
- 1
- 14
- 30
0
votes
1 answer
Why am I getting "Cannot return null for non-nullable field User.sentEmail."?
I understand that I would receive this error if the field I am trying to call is null, but when I do a create email, that email's id does gets saved in the user. But when I try to query that user using the following query
query all {
users{
…

Faizan Ali
- 15
- 1
0
votes
1 answer
How to disable apollo sandbox and launch playground?
I was using apollo-server and when I needed to get access to the playground I only put localhost:4000 and I got access to Playground, but now when I try to get access to playground is redirected to the sandbox, the question is about how can I…

Tlaloc-ES
- 4,825
- 7
- 38
- 84
0
votes
1 answer
How to run a mutation in ApolloServer using the GraphQL Playground?
I'm using node.js, express and apollo-server-express. With the following code:
const express = require('express');
const { ApolloServer, gql } = require('apollo-server-express');
const typeDefs = gql`
type Book { title: String author: String }
…

Edmond Meinfelder
- 313
- 1
- 5
- 19