Skip to content

Temporarily disable interface tests #543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2020
Merged
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
8 changes: 4 additions & 4 deletions docs/book/content/types/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ be done in a couple of different ways:

### Downcasting via accessor methods

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

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

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

```rust
```rust,ignore
#[derive(juniper::GraphQLObject)]
struct Human {
id: String,
Expand Down