Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
title: Authors_And_Reviews_And_Products_AutoCompose
request:
document: |
{
users {
id
}
reviews {
body
}
topProducts(first: 2) {
id
}
}
response:
body: |
{
"data": {
"users": [
{
"id": "VXNlcjox"
},
{
"id": "VXNlcjoy"
},
{
"id": "VXNlcjoz"
}
],
"reviews": [
{
"body": "Review: UmV2aWV3OjE="
},
{
"body": "Review: UmV2aWV3OjI="
},
{
"body": "Review: UmV2aWV3OjM="
}
],
"topProducts": [
{
"id": "UHJvZHVjdDox"
},
{
"id": "UHJvZHVjdDoy"
},
{
"id": "UHJvZHVjdDoz"
}
]
}
}
sourceSchemas:
- name: A
schema: |
schema {
query: Query
}

interface Node {
id: ID!
}

type Query {
node(id: ID!): Node @lookup @shareable
nodes(ids: [ID!]!): [Node]! @shareable
userById(id: ID!): User!
users: [User!]!
testWithTwoArgumentsDifferingNullability(first: Int! second: Int): String!
}

type User implements Node {
id: ID!
name: String!
username: String!
birthdate: String!
}
interactions:
- request:
document: |
query Op_5e956cef_2 {
users {
id
}
}
response:
results:
- |
{
"data": {
"users": [
{
"id": "VXNlcjox"
},
{
"id": "VXNlcjoy"
},
{
"id": "VXNlcjoz"
}
]
}
}
- name: B
schema: |
schema {
query: Query
}

interface Node {
id: ID!
}

type Product implements Node {
id: ID!
reviews: [Review!]!
reviewCount: Int!
}

type Query {
node(id: ID!): Node @lookup @shareable
nodes(ids: [ID!]!): [Node]! @shareable
reviews: [Review!]!
}

type Review implements Node {
id: ID!
body: String!
author: User!
product: Product!
}

type User implements Node {
id: ID!
reviews: [Review!]!
errorField: String @error
}
interactions:
- request:
document: |
query Op_5e956cef_1 {
reviews {
body
}
}
response:
results:
- |
{
"data": {
"reviews": [
{
"body": "Review: UmV2aWV3OjE="
},
{
"body": "Review: UmV2aWV3OjI="
},
{
"body": "Review: UmV2aWV3OjM="
}
]
}
}
- name: C
schema: |
schema {
query: Query
}

interface Node {
id: ID!
}

type Product implements Node {
id: ID!
name: String!
size: Int! @shareable
weight: Int! @shareable
repeat(num: Int!): String!
repeatData(data: RepeatDataInput!): RepeatDataPayload!
}

type Query {
node(id: ID!): Node @lookup @shareable
nodes(ids: [ID!]!): [Node]! @shareable
productById(id: ID!): Product @lookup @shareable
topProducts(first: Int!): [Product!]!
}

type RepeatDataData {
num: Int!
}

type RepeatDataPayload {
data: RepeatDataData!
}

input RepeatDataDataInput {
num: Int!
}

input RepeatDataInput {
data: RepeatDataDataInput!
}
interactions:
- request:
document: |
query Op_5e956cef_3 {
topProducts(first: 2) {
id
}
}
response:
results:
- |
{
"data": {
"topProducts": [
{
"id": "UHJvZHVjdDox"
},
{
"id": "UHJvZHVjdDoy"
},
{
"id": "UHJvZHVjdDoz"
}
]
}
}
operationPlan:
operation:
- document: |
{
users {
id
}
reviews {
body
}
topProducts(first: 2) {
id
}
}
hash: 5e956cefca158ef5509c5abb6ddbd512
searchSpace: 3
expandedNodes: 3
nodes:
- id: 1
type: Operation
schema: B
operation: |
query Op_5e956cef_1 {
reviews {
body
}
}
- id: 2
type: Operation
schema: A
operation: |
query Op_5e956cef_2 {
users {
id
}
}
- id: 3
type: Operation
schema: C
operation: |
query Op_5e956cef_3 {
topProducts(first: 2) {
id
}
}
Loading
Loading