[][src]Enum async_graphql::QueryOperation

pub enum QueryOperation {
    None,
    After {
        after: Cursor,
    },
    Before {
        before: Cursor,
    },
    Between {
        after: Cursor,
        before: Cursor,
    },
    First {
        limit: usize,
    },
    FirstAfter {
        limit: usize,
        after: Cursor,
    },
    FirstBefore {
        limit: usize,
        before: Cursor,
    },
    FirstBetween {
        limit: usize,
        after: Cursor,
        before: Cursor,
    },
    Last {
        limit: usize,
    },
    LastAfter {
        limit: usize,
        after: Cursor,
    },
    LastBefore {
        limit: usize,
        before: Cursor,
    },
    LastBetween {
        limit: usize,
        after: Cursor,
        before: Cursor,
    },
    Invalid,
}

Connection query operation

Variants

None

Return all results

After

Return all results after the cursor

Fields of After

after: Cursor

After this cursor

Before

Return all results before the cursor

Fields of Before

before: Cursor

Before this cursor

Between

Return all results between the cursors

Fields of Between

after: Cursor

After this cursor

before: Cursor

But before this cursor

First

Return the amount of results specified by limit, starting from the beginning

Fields of First

limit: usize

The maximum amount of results to return

FirstAfter

Return the amount of results specified by limit, starting after the cursor

Fields of FirstAfter

limit: usize

The maximum amount of results to return

after: Cursor

After this cursor

FirstBefore

Return the amount of results specified by limit, starting from the beginning but ending before the cursor

Fields of FirstBefore

limit: usize

The maximum amount of results to return

before: Cursor

Before this cursor

FirstBetween

Return the amount of results specified by limit, but between the cursors. Limit includes beginning results.

Fields of FirstBetween

limit: usize

The maximum amount of results to return

after: Cursor

After this cursor

before: Cursor

But before this cursor

Last

Return the amount of results specified by limit, but before the end

Fields of Last

limit: usize

The maximum amount of results to return

LastAfter

Return the amount of results specified by limit, but before the end. Must not include anything before the cursor.

Fields of LastAfter

limit: usize

The maximum amount of results to return

after: Cursor

After this cursor

LastBefore

Return the amount of results specified by limit, but before the cursor

Fields of LastBefore

limit: usize

The maximum amount of results to return

before: Cursor

Before this cursor

LastBetween

Return the amount of results specified by limit, but between the cursors. Limit includes ending results.

Fields of LastBetween

limit: usize

The maximum amount of results to return

after: Cursor

After this cursor

before: Cursor

But before this cursor

Invalid

An invalid query was made. For example: sending first and last in the same query

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,