2020-06-08 15:13:01 +03:00
|
|
|
description: Query the relay Node interface
|
2020-07-03 09:30:35 +03:00
|
|
|
url: /v1beta1/relay
|
2020-06-08 15:13:01 +03:00
|
|
|
status: 200
|
|
|
|
query:
|
|
|
|
variables:
|
2020-06-16 17:25:49 +03:00
|
|
|
author_id: WzEsICJwdWJsaWMiLCJhdXRob3IiLDJdCg==
|
|
|
|
article_id: WzEsInB1YmxpYyIsImFydGljbGUiLDNdCg==
|
|
|
|
non_exist_article_id: WzEsInB1YmxpYyIsImFydGljbGUiLDEwMF0K
|
2020-06-08 15:13:01 +03:00
|
|
|
query: |
|
2020-06-16 17:25:49 +03:00
|
|
|
query nodeQuery($author_id: ID!, $article_id: ID!, $non_exist_article_id: ID!){
|
2020-06-08 15:13:01 +03:00
|
|
|
author_node: node(id: $author_id){
|
|
|
|
__typename
|
|
|
|
... on author{
|
|
|
|
name
|
|
|
|
articles_connection{
|
|
|
|
edges{
|
|
|
|
cursor
|
|
|
|
node{
|
|
|
|
title
|
|
|
|
content
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
article_node_with_author_id: node(id: $author_id){
|
|
|
|
id
|
|
|
|
... on article{
|
|
|
|
title
|
|
|
|
content
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
article_node: node(id: $article_id){
|
|
|
|
__typename
|
|
|
|
... on article{
|
|
|
|
title
|
|
|
|
content
|
|
|
|
author{
|
|
|
|
name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-16 17:25:49 +03:00
|
|
|
non_exist_article: node(id: $non_exist_article_id){
|
|
|
|
... on article{
|
|
|
|
title
|
|
|
|
content
|
|
|
|
}
|
|
|
|
}
|
2020-06-08 15:13:01 +03:00
|
|
|
}
|
|
|
|
response:
|
|
|
|
data:
|
|
|
|
author_node:
|
|
|
|
__typename: author
|
|
|
|
name: Author 2
|
|
|
|
articles_connection:
|
|
|
|
edges:
|
|
|
|
- cursor: eyJpZCIgOiA0fQ==
|
|
|
|
node:
|
|
|
|
title: Article 4
|
|
|
|
content: Sample article content 4
|
|
|
|
- cursor: eyJpZCIgOiA1fQ==
|
|
|
|
node:
|
|
|
|
title: Article 5
|
|
|
|
content: Sample article content 5
|
|
|
|
article_node_with_author_id:
|
2020-06-16 17:25:49 +03:00
|
|
|
id: WzEsICJwdWJsaWMiLCAiYXV0aG9yIiwgMl0=
|
2020-06-08 15:13:01 +03:00
|
|
|
article_node:
|
|
|
|
__typename: article
|
|
|
|
title: Article 3
|
|
|
|
content: Sample article content 3
|
|
|
|
author:
|
|
|
|
name: Author 1
|
2020-06-16 17:25:49 +03:00
|
|
|
non_exist_article: null
|