Created
July 10, 2021 12:51
-
-
Save luizomf/ed79362ed04e683569c51d8c3bca2776 to your computer and use it in GitHub Desktop.
Insomnia Export - GraphQL Course
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_type: export | |
__export_format: 4 | |
__export_date: 2021-07-10T12:35:32.103Z | |
__export_source: insomnia.desktop.app:v2021.4.0 | |
resources: | |
- _id: req_704712d857a6467398fe33cc256861e9 | |
parentId: fld_eb580b455900487a8e4cf336beb24a97 | |
modified: 1625087424013 | |
created: 1625080330699 | |
url: "{{ _.baseUrl }}" | |
name: DELETE_USER | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation DELETE_USER($userId: ID!) {\n deleteUser(userId: | |
$userId) {\n ...user\n }\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"userId":"c0Utd3Z"},"operationName":"DELETE_USER"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_895aeca35d1f42b7a914e5573bb82483 | |
authentication: {} | |
metaSortKey: -1625054958775.75 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_eb580b455900487a8e4cf336beb24a97 | |
parentId: fld_9d21ec009bba46cea466b463089134bf | |
modified: 1625081200889 | |
created: 1625081200889 | |
name: USER | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081200889 | |
_type: request_group | |
- _id: fld_9d21ec009bba46cea466b463089134bf | |
parentId: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
modified: 1625080145853 | |
created: 1625080145853 | |
name: Mutations | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625080145853 | |
_type: request_group | |
- _id: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
parentId: null | |
modified: 1625079652315 | |
created: 1624982043758 | |
name: GraphQL Course - Otávio Miranda | |
description: This is a set of GraphQL queries used in my Udemy course. | |
scope: collection | |
_type: workspace | |
- _id: req_2cb72f72b8fa494ab1ee98d523e70c37 | |
parentId: fld_eb580b455900487a8e4cf336beb24a97 | |
modified: 1625087429941 | |
created: 1625087191702 | |
url: "{{ _.baseUrl }}" | |
name: CREATE_USER | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":" mutation CREATE_USER(\n $firstName: | |
String!\n $lastName: String!\n $userName: String!\n $password: | |
String!\n ) {\n createUser(\n data: {\n firstName: | |
$firstName\n lastName: $lastName\n userName: | |
$userName\n password: $password\n }\n ) | |
{\n ...user\n }\n }\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"firstName":"FirstName","lastName":"LastName","userName":"userName","password":"Abc123"},"operationName":"CREATE_USER"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_895aeca35d1f42b7a914e5573bb82483 | |
authentication: {} | |
metaSortKey: -1625042820629.625 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_464f04526bac4f36ab69822ac51e1d6a | |
parentId: fld_eb580b455900487a8e4cf336beb24a97 | |
modified: 1625087430812 | |
created: 1625087281390 | |
url: "{{ _.baseUrl }}" | |
name: UPDATE_USER | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":" mutation UPDATE_USER(\n $userId: ID!\n $firstName: | |
String!\n $lastName: String!\n $userName: String!\n $password: | |
String!\n ) {\n updateUser(\n userId: $userId\n data: | |
{\n firstName: $firstName\n lastName: | |
$lastName\n userName: $userName\n password: | |
$password\n }\n ) {\n ...user\n }\n }\n\nfragment user | |
on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"userId":"c0Utd3Z","firstName":"[UPDATED] | |
FirstName","lastName":"LastName","userName":"userName","password":"Abc123"},"operationName":"UPDATE_USER"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_895aeca35d1f42b7a914e5573bb82483 | |
authentication: {} | |
metaSortKey: -1625036751556.5625 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_f8f9a2e0f42f416287ffe0a67362b15a | |
parentId: fld_6b5456eae96d4228b12a9044fb14666d | |
modified: 1625081181038 | |
created: 1625080280521 | |
url: "{{ _.baseUrl }}" | |
name: LOGOUT | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation LOGOUT($userName: String!) {\n logout(userName: | |
$userName)\n}\n","variables":{"userName":"luizotavio"},"operationName":"LOGOUT"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_895aeca35d1f42b7a914e5573bb82483 | |
authentication: {} | |
metaSortKey: -1625081144008 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_6b5456eae96d4228b12a9044fb14666d | |
parentId: fld_9d21ec009bba46cea466b463089134bf | |
modified: 1625081150643 | |
created: 1625081150643 | |
name: AUTH | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081150643 | |
_type: request_group | |
- _id: req_2060e742ef074c07bf7cdf562a546978 | |
parentId: fld_6b5456eae96d4228b12a9044fb14666d | |
modified: 1625918858792 | |
created: 1625079235068 | |
url: "{{ _.baseUrl }}" | |
name: LOGIN | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation LOGIN($userName: String!, $password: String!) | |
{\n login(data: {userName: $userName, password: $password}) | |
{\n userId\n token\n }\n}\n","variables":{"userName":"luizotavio","password":"Abc123"},"operationName":"LOGIN"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_895aeca35d1f42b7a914e5573bb82483 | |
authentication: {} | |
metaSortKey: -1625081143958 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_cdfa499fc76b4873a27ec2b87d59b412 | |
parentId: fld_0873dde383de49418067c93153d25b68 | |
modified: 1625920355944 | |
created: 1625080709741 | |
url: "{{ _.baseUrl }}" | |
name: CREATE_COMMENT | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation CREATE_COMMENT($comment: String!, $postId: String!) | |
{\n createComment(data: {comment: $comment, postId: $postId}) | |
{\n ...comment\n user {\n ...user\n }\n }\n}\n\nfragment | |
user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n\nfragment | |
comment on Comment | |
{\n id\n comment\n# postId\n createdAt\n}\n","variables":{"comment":"Testing | |
4","postId":"TI1v2U8"},"operationName":"CREATE_COMMENT"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_24a6ba571ba540b0868020b0480a0685 | |
authentication: {} | |
metaSortKey: -1625080709741 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_0873dde383de49418067c93153d25b68 | |
parentId: fld_9d21ec009bba46cea466b463089134bf | |
modified: 1625081137273 | |
created: 1625081137273 | |
name: COMMENT | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081137273 | |
_type: request_group | |
- _id: req_3ef51011a7a1487da9c45218784c03ec | |
parentId: fld_a5a298f2bddf42008ba86781672bb05d | |
modified: 1625918910401 | |
created: 1625080946299 | |
url: "{{ _.baseUrl }}" | |
name: UPDATE_POST | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation UPDATE_POST($postId: ID!, $title: String, $body: | |
String) {\n updatePost(postId: $postId, data: {title: $title, body: | |
$body}) {\n ...post\n user | |
{\n ...user\n }\n }\n}\n\nfragment post on Post | |
{\n id\n title\n body\n createdAt\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"postId":"0p7NBLm","title":"[UPDATED | |
1] A new nice post","body":"You can add whatever you want to the | |
body."},"operationName":"UPDATE_POST"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_24a6ba571ba540b0868020b0480a0685 | |
authentication: {} | |
metaSortKey: -1625080412653 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_a5a298f2bddf42008ba86781672bb05d | |
parentId: fld_9d21ec009bba46cea466b463089134bf | |
modified: 1625081118065 | |
created: 1625081118065 | |
name: POST | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081118065 | |
_type: request_group | |
- _id: req_fb978223952547b78d3509c80e443053 | |
parentId: fld_a5a298f2bddf42008ba86781672bb05d | |
modified: 1625918904457 | |
created: 1625080858365 | |
url: "{{ _.baseUrl }}" | |
name: CREATE_POST | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"mutation CREATE_POST($title: String!, $body: String!) | |
{\n createPost(data: {title: $title, body: $body}) | |
{\n ...post\n user {\n ...user\n }\n }\n}\n\nfragment | |
post on Post {\n id\n title\n body\n createdAt\n}\n\nfragment user | |
on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"title":"A | |
new nice post","body":"You can add whatever you want to the | |
body."},"operationName":"CREATE_POST"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_24a6ba571ba540b0868020b0480a0685 | |
authentication: {} | |
metaSortKey: -1625080412603 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_fe79d1cd5bd14c76a20a2464d390a2c7 | |
parentId: fld_a5a298f2bddf42008ba86781672bb05d | |
modified: 1625918941884 | |
created: 1625081080352 | |
url: "{{ _.baseUrl }}" | |
name: DELETE_POST | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":" mutation DELETE_POST($postId: ID!) {\n deletePost(postId: | |
$postId)\n }\n\n","variables":{"postId":"0p7NBLm"},"operationName":"DELETE_POST"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_24a6ba571ba540b0868020b0480a0685 | |
authentication: {} | |
metaSortKey: -1625080412553 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_f70f71c0aa5c43f1ad73822ae0543d00 | |
parentId: fld_737eb88f845f4033a83faf3f540fa544 | |
modified: 1625081269284 | |
created: 1625080439354 | |
url: "{{ _.baseUrl }}" | |
name: GET_USERS | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"query GET_USERS($sort: String = \"indexRef\", $order: | |
ApiFilterOrder = DESC, $start: Int = 0, $limit: Int = 10) | |
{\n users(input: {_sort: $sort, _order: $order, _start: $start, _limit: | |
$limit}) {\n ...user\n }\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"sort":"indexRef","order":"DESC","start":0,"limit":1000},"operationName":"GET_USERS"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_1fe1713559774455b83f64e09c265783 | |
authentication: {} | |
metaSortKey: -1625080115477.5 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_737eb88f845f4033a83faf3f540fa544 | |
parentId: fld_8c47e54525ab4bfa90a30da25591e11a | |
modified: 1625081246913 | |
created: 1625081246913 | |
name: USER | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081246913 | |
_type: request_group | |
- _id: fld_8c47e54525ab4bfa90a30da25591e11a | |
parentId: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
modified: 1625080115365 | |
created: 1625080115365 | |
name: Queries | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625080115365 | |
_type: request_group | |
- _id: req_97f726454fda4f1487a125dd8126d344 | |
parentId: fld_737eb88f845f4033a83faf3f540fa544 | |
modified: 1625081266567 | |
created: 1625080543532 | |
url: "{{ _.baseUrl }}" | |
name: GET_USER | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"query GET_USER($id: ID!) {\n user(id: $id) | |
{\n ...user\n }\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n","variables":{"id":"DrldaMs"},"operationName":"GET_USER"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_1fe1713559774455b83f64e09c265783 | |
authentication: {} | |
metaSortKey: -1625080115427.5 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: req_8dc3df8422814dc0aeff9db56d81027e | |
parentId: fld_676218756cc54651bc29ccb0f6dab92a | |
modified: 1625918922468 | |
created: 1625078997685 | |
url: "{{ _.baseUrl }}" | |
name: GET_POSTS | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"query GET_POSTS($sort: String = \"indexRef\", $order: | |
ApiFilterOrder = DESC, $start: Int = 0, $limit: Int = 10) | |
{\n posts(input: {_sort: $sort, _order: $order, _start: $start, _limit: | |
$limit}) {\n ...post\n user {\n ...user\n }\n comments | |
{\n ...comment\n user | |
{\n ...user\n }\n }\n }\n}\n\nfragment post on Post | |
{\n id\n title\n body\n createdAt\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n\nfragment | |
comment on Comment | |
{\n id\n comment\n# postId\n createdAt\n}\n","variables":{"sort":"indexRef","order":"DESC","start":0,"limit":1000},"operationName":"GET_POSTS"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_1fe1713559774455b83f64e09c265783 | |
authentication: {} | |
metaSortKey: -1625080115527.5 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: fld_676218756cc54651bc29ccb0f6dab92a | |
parentId: fld_8c47e54525ab4bfa90a30da25591e11a | |
modified: 1625081242481 | |
created: 1625081242481 | |
name: POST | |
description: "" | |
environment: {} | |
environmentPropertyOrder: null | |
metaSortKey: -1625081242481 | |
_type: request_group | |
- _id: req_459fb5213f9c467ab84e62a867d32fc5 | |
parentId: fld_676218756cc54651bc29ccb0f6dab92a | |
modified: 1625918918148 | |
created: 1624982129899 | |
url: "{{ _.baseUrl }}" | |
name: GET_POST | |
description: "" | |
method: POST | |
body: | |
mimeType: application/graphql | |
text: '{"query":"query GET_POST($id: ID!) {\n post(id: $id) | |
{\n ...post\n user {\n ...user\n }\n comments | |
{\n ...comment\n user | |
{\n ...user\n }\n }\n }\n}\n\nfragment post on Post | |
{\n id\n title\n body\n createdAt\n}\n\nfragment user on User | |
{\n id\n firstName\n lastName\n userName\n createdAt\n}\n\nfragment | |
comment on Comment | |
{\n id\n comment\n# postId\n createdAt\n}\n","variables":{"id":"0p7NBLm"},"operationName":"GET_POST"}' | |
parameters: [] | |
headers: | |
- name: Content-Type | |
value: application/json | |
id: pair_1fe1713559774455b83f64e09c265783 | |
authentication: {} | |
metaSortKey: -1625080115477.5 | |
isPrivate: false | |
settingStoreCookies: true | |
settingSendCookies: true | |
settingDisableRenderRequestBody: false | |
settingEncodeUrl: true | |
settingRebuildPath: true | |
settingFollowRedirects: global | |
_type: request | |
- _id: env_21f80394f778418c06dfbc4152214e590a056323 | |
parentId: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
modified: 1625917369012 | |
created: 1624982043808 | |
name: Base Environment | |
data: | |
baseUrl: https://om-graphql.herokuapp.com/ | |
dataPropertyOrder: | |
"&": | |
- baseUrl | |
color: null | |
isPrivate: false | |
metaSortKey: 1624982043808 | |
_type: environment | |
- _id: jar_21f80394f778418c06dfbc4152214e590a056323 | |
parentId: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
modified: 1625918861611 | |
created: 1624982043810 | |
name: Default Jar | |
cookies: | |
- key: jwtToken | |
value: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ4RFpvMGJBIiwiaWF0IjoxNjI1MDg3OTM5LCJleHAiOjE2MjU2OTI3Mzl9.rRvTTEtfDa4Sz64euub9rTG0IIGf__EHnpvTrThc9os | |
expires: 2021-07-07T21:18:59.000Z | |
maxAge: 604800 | |
domain: gqlcourse.otaviomiranda.com.br | |
path: / | |
secure: true | |
httpOnly: true | |
extensions: | |
- SameSite=None | |
hostOnly: true | |
creation: 2021-06-30T18:56:43.588Z | |
lastAccessed: 2021-06-30T21:18:59.553Z | |
id: "3436644711319059" | |
- key: jwtToken | |
value: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ4RFpvMGJBIiwiaWF0IjoxNjI1OTE4ODYyLCJleHAiOjE2MjY1MjM2NjJ9.D7Qq_zt-Z8I1M5p2odSaE9CuIdAKyEeaJYZxHThSvw0 | |
expires: 2021-07-17T12:07:42.000Z | |
maxAge: 604800 | |
domain: om-graphql.herokuapp.com | |
path: / | |
secure: true | |
httpOnly: true | |
extensions: | |
- SameSite=None | |
hostOnly: true | |
creation: 2021-07-10T11:43:40.639Z | |
lastAccessed: 2021-07-10T12:07:41.609Z | |
id: "4148356446526349" | |
_type: cookie_jar | |
- _id: spc_b659bd24cf3c4936af158038cb89c656 | |
parentId: wrk_66d91bc40d9f4c1989e2979494a25c8f | |
modified: 1624982043760 | |
created: 1624982043760 | |
fileName: Insomnia | |
contents: "" | |
contentType: yaml | |
_type: api_spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment