Skip to content

Commit

Permalink
added missed snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
webbdays committed Apr 16, 2024
1 parent a2d0807 commit c894047
Show file tree
Hide file tree
Showing 305 changed files with 8,188 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"username": "Leanne Graham"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
source: tests/execution_spec.rs
expression: client
---
scalar Date

scalar Email

scalar Empty

scalar JSON

scalar PhoneNumber

type Query {
username: String
users: [User]
}

scalar Url

type User {
name: String
}

schema {
query: Query
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: merged
---
schema @server @upstream {
query: Query
}

type Query @addField(name: "username", path: ["users", "0", "name"]) {
users: [User] @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users")
}

type User {
name: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"user": {
"name": "foo",
"street": "Kulas Light",
"city": "Gwenborough",
"zipcode": "92998-3874"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
source: tests/execution_spec.rs
expression: client
---
type Address {
city: String
street: String
zipcode: String
}

scalar Date

scalar Email

scalar Empty

scalar JSON

scalar PhoneNumber

type Query {
user: User
}

scalar Url

type User {
address: Address
city: String
name: String
street: String
zipcode: String
}

schema {
query: Query
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
source: tests/execution_spec.rs
expression: merged
---
schema @server @upstream {
query: Query
}

type Address {
city: String
street: String
zipcode: String
}

type Query {
user: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1")
}

type User @addField(name: "street", path: ["address", "street"]) @addField(name: "city", path: ["address", "city"]) @addField(name: "zipcode", path: ["address", "zipcode"]) {
address: Address
name: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"lat": "-37.3159"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"lng": "81.1496"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
source: tests/execution_spec.rs
expression: client
---
type Address {
geo: Geo
street: String
}

scalar Date

scalar Email

scalar Empty

type Geo {
lat: String
lng: String
}

scalar JSON

scalar PhoneNumber

type Query {
lat: String
lng: String
user: User
}

scalar Url

type User {
address: Address
}

schema {
query: Query
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
source: tests/execution_spec.rs
expression: merged
---
schema @server @upstream {
query: Query
}

type Address {
geo: Geo
street: String
}

type Geo {
lat: String
lng: String
}

type Query @addField(name: "lat", path: ["user", "address", "geo", "lat"]) @addField(name: "lng", path: ["user", "address", "geo", "lng"]) {
user: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1")
}

type User {
address: Address
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"user1": "Leanne Graham"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"user2": "Ervin Howell"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
source: tests/execution_spec.rs
expression: client
---
scalar Date

scalar Email

scalar Empty

scalar JSON

scalar PhoneNumber

type Query {
person1: User
person2: User
user1: String
user2: String
}

scalar Url

type User {
name: String
}

schema {
query: Query
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
source: tests/execution_spec.rs
expression: merged
---
schema @server @upstream {
query: Query
}

type Query @addField(name: "user1", path: ["person1", "name"]) @addField(name: "user2", path: ["person2", "name"]) {
person1: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1")
person2: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/2")
}

type User {
name: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
source: tests/execution_spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"user": {
"lat": "-37.3159"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
source: tests/execution_spec.rs
expression: client
---
type Address {
geo: Geo
}

scalar Date

scalar Email

scalar Empty

type Geo {
lat: String
}

scalar JSON

scalar PhoneNumber

type Query {
user: User
}

scalar Url

type User {
address: Address
lat: String
}

schema {
query: Query
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
source: tests/execution_spec.rs
expression: merged
---
schema @server @upstream {
query: Query
}

type Address {
geo: Geo
}

type Geo {
lat: String
}

type Query {
user: User @http(baseURL: "http://jsonplaceholder.typicode.com", path: "/users/1")
}

type User @addField(name: "lat", path: ["address", "geo", "lat"]) {
address: Address
}
Loading

0 comments on commit c894047

Please sign in to comment.