Skip to content

Commit 8925f64

Browse files
authored
Temporarily disable interface tests (#543)
These aren't reimplemented yet as proc macros. Disabling them so book tests on PRs pass and the website is updated.
1 parent ca28e90 commit 8925f64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/book/content/types/interfaces.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ be done in a couple of different ways:
1818

1919
### Downcasting via accessor methods
2020

21-
```rust
21+
```rust,ignore
2222
#[derive(juniper::GraphQLObject)]
2323
struct Human {
2424
id: String,
@@ -76,7 +76,7 @@ If you can afford an extra database lookup when the concrete class is requested,
7676
you can do away with the downcast methods and use the context instead. Here,
7777
we'll use two hashmaps, but this could be two tables and some SQL calls instead:
7878

79-
```rust
79+
```rust,ignore
8080
# use std::collections::HashMap;
8181
#[derive(juniper::GraphQLObject)]
8282
#[graphql(Context = Database)]
@@ -130,7 +130,7 @@ This removes the need of downcast methods, but still requires some repetition.
130130
Continuing on from the last example, the trait itself seems a bit unneccesary.
131131
Maybe it can just be a struct containing the ID?
132132

133-
```rust
133+
```rust,ignore
134134
# use std::collections::HashMap;
135135
#[derive(juniper::GraphQLObject)]
136136
#[graphql(Context = "Database")]
@@ -178,7 +178,7 @@ Using enums and pattern matching lies half-way between using traits and using
178178
placeholder objects. We don't need the extra database call in this case, so
179179
we'll remove it.
180180

181-
```rust
181+
```rust,ignore
182182
#[derive(juniper::GraphQLObject)]
183183
struct Human {
184184
id: String,

0 commit comments

Comments
 (0)