-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL API playground #1123
GraphQL API playground #1123
Conversation
Adds the GraphQLConsole component, which renders the graphql-playground-react component at the route `/api_console/graphql`. The GraphQL server endpoint must be retrieved from the Parse app instance.
What happens if graphQLServerURL is not set? I wanted to make sure that either the GraphQL console will not show up or we will have a friendly message introducing GraphQL as most of the developers have not yet setup GraphQL for their projects and no errors should be displayed in this case. |
@davimacedo I was thinking about using the What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks pretty good. Could you please work on these 3 items?
- Rebase the branch
- In the "blank" version, the image and text is not center aligned as you can see in the picture below.
* parse: (21 commits) Reset credentials (parse-community#1135) 1.4.0 version bump + changelog (parse-community#1134) Fix: Master fails to install graphql-playground parse-community#1131 (parse-community#1133) Update eslint-plugin-react to the latest version 🚀 (parse-community#1122) Update babel7 to the latest version 🚀 (parse-community#1129) GraphQL API playground (parse-community#1123) Fix: Can't switch (dropdown list) between servers parse-community#1045 (parse-community#1125) Update puppeteer to the latest version 🚀 (parse-community#1124) Update eslint-plugin-react to the latest version 🚀 (parse-community#1120) Update webpack-cli to the latest version 🚀 (parse-community#1119) Update react-dnd to the latest version 🚀 (parse-community#1117) Update puppeteer to the latest version 🚀 (parse-community#1116) Update react-dnd to the latest version 🚀 (parse-community#1114) Update babel-eslint to the latest version 🚀 (parse-community#1113) Update react-dnd to the latest version 🚀 (parse-community#1111) Update react-dnd to the latest version 🚀 (parse-community#1110) Update package-json to the latest version 🚀 (parse-community#1108) Update webpack-cli to the latest version 🚀 (parse-community#1106) Update react-dnd to the latest version 🚀 (parse-community#1104) Update webpack-cli to the latest version 🚀 (parse-community#1103) ... # Conflicts: # package-lock.json
Adds the
GraphQLConsole
component under theAPI Console
category, which allows users to test theparse-server
GraphQL API. The component should be mounted withX-Parse-Application-Id
andX-Parse-Master-Key
headers, and theparse-server
's GraphQL API endpoint set. It means it will be ready to execute queries/mutations as soon as it is opened.All the information required (
applicationId
,masterKey
andgraphQLServerURL
) must be defined on theParseApp
instance in order to work properly.