Browse Source

feat: set hoppscotch graphql echo server as default

liyasthomas 4 years ago
parent
commit
b811e97ea5
1 changed files with 9 additions and 6 deletions
  1. 9 6
      packages/hoppscotch-app/newstore/GQLSession.ts

+ 9 - 6
packages/hoppscotch-app/newstore/GQLSession.ts

@@ -16,15 +16,18 @@ type GQLSession = {
 export const defaultGQLSession: GQLSession = {
   request: makeGQLRequest({
     name: "",
-    url: "https://rickandmortyapi.com/graphql",
+    url: "https://echo.hoppscotch.io/graphql",
     headers: [],
     variables: `{ "id": "1" }`,
-    query: `query GetCharacter($id: ID!) {
-  character(id: $id) {
-    id
-    name
+    query: `query Request {
+  method
+  url
+  headers {
+    key
+    value
   }
-}`,
+}
+`,
   }),
   schema: "",
   response: "",