juniper_relay_helpers 0.6.0

Helper macros, structs and functions for working with Relay and Juniper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Cursor, PageRequest};

/// Struct that holds metadata about the response that can be used in the CursorProvider
#[derive(Debug, Clone)]
pub struct PaginationMetadata<CursorType>
where
    CursorType: Cursor,
{
    /// The total number of items in the result set:
    pub total_count: Option<i32>,

    /// The current PageInfo, if any:
    pub page_request: Option<PageRequest<CursorType>>,
}