Questions tagged [graphql-playground]

52 questions
0
votes
1 answer

Testing Upload scalar type in graphql-playground

Ex: mutation { uploadMediaObject(input: {file: "C:/Users/ASUS/Pictures/bmw.png"}) { mediaObject {id contentUrl} } } I want to test that mutation using graphql playground. So how to put a file in there?
0
votes
1 answer

How to make GraphQL playground not display selected options?

I have this view in the playground: But when I try to add another option to select, I hit CTRL + space and I see every single possible option, even the ones already selected. How can I stop that from happening? In the dropdown I'd like to see only…
Alex Ironside
  • 4,658
  • 11
  • 59
  • 119
0
votes
0 answers

GraphQL client not reading certain query variables

I have a database that consists of the following 3 entries: { "username": "negger", "firstName": "Arnold" }, { "username": "jonsnow", "firstName": "Jon" }, { "username": "tonystark", "firstName": "Tony" } In my GraphQL Playground…
TheLearner
  • 2,813
  • 5
  • 46
  • 94
0
votes
1 answer

SO composer require rebing/graphql-laravel fails

I have the following problem trying to install rebing/graphql-laravel via composer: $ composer require rebing/graphql-laravel Using version ^2.1 for rebing/graphql-laravel ./composer.json has been updated Loading composer repositories with package…
-1
votes
1 answer

How to write mutation in graphql-playgraound for the output

I want to see output in graphql-playground of mutations which I don't know how to do. Code is below. type Query { """ Gets single referral program""" program:Program setting(level_id:Int!): Setting } type Mutation { """Define…
MBV
  • 1
-1
votes
1 answer

How can I condition GraphQL mutation based on exists?

I am creating schemas in GraphQl and testing these in Playground. These seem to work fine in being able to create Club, User and Team, yet I only want to be able to create a team if a club exists and can therefore connect to the club. At the moment…
Mr J
  • 3
  • 5
-2
votes
1 answer

How to load schema.graphql in laravel graphql-playground without using public folder and php artisan

I am developing a graphql based laravel app and using Lighthouse for the purpose. Now I have to access the playground through localhost/blog/graphql-playground (without using artisan or writing public every time), for this purpose I have copied…
1 2 3
4