Merge pull request #853 from Zwo1in/master
Correct import path for cursor connection in docs
This commit is contained in:
commit
b2ac69b102
|
@ -6,7 +6,7 @@ Defining a cursor connection in `async-graphql` is very simple, you just call th
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use async_graphql::*;
|
use async_graphql::*;
|
||||||
use async_graphql::connection::*;
|
use async_graphql::types::connection::*;
|
||||||
|
|
||||||
struct Query;
|
struct Query;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Relay定义了一套游标连接规范,以提供一致性的分页查询方式
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use async_graphql::*;
|
use async_graphql::*;
|
||||||
use async_graphql::connection::*;
|
use async_graphql::types::connection::*;
|
||||||
|
|
||||||
struct Query;
|
struct Query;
|
||||||
|
|
||||||
|
@ -42,4 +42,4 @@ impl Query {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub struct EmptyFields;
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use async_graphql::*;
|
/// use async_graphql::*;
|
||||||
/// use async_graphql::connection::*;
|
/// use async_graphql::types::connection::*;
|
||||||
///
|
///
|
||||||
/// struct Query;
|
/// struct Query;
|
||||||
///
|
///
|
||||||
|
@ -116,7 +116,7 @@ where
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use async_graphql::*;
|
/// use async_graphql::*;
|
||||||
/// use async_graphql::connection::*;
|
/// use async_graphql::types::connection::*;
|
||||||
///
|
///
|
||||||
/// #[derive(SimpleObject)]
|
/// #[derive(SimpleObject)]
|
||||||
/// struct MyEdge {
|
/// struct MyEdge {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user