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