VehicleConnection

Definition

Get a list of minted vehicles ordered by tokenId in descending order.

Developer Notes

This GraphQL connection refers to the plural vehicles, hence an argument is needed in order for the query to target the specific subset of results.


Arguments

Field
Sub-field
Type
Description

first

Returns the first records given the argument provided.

last

Returns the last records given the argument provided.

after

Used for pagination, returns records after the given identifier.

before

Used for pagination, returns records before the given identifier.

filterBy

privileged

0x address of the privileged user.

owner

0x address of the vehicle owner.

Sample Query

{
    vehicles(
        first: 100
        after: "NDIyMTg="
        filterBy: { owner: "0x84B0EEeCD3bd243603df244D33587FF23c78D6B0" }
    ) {
        nodes {
            id
            tokenId
            owner
            mintedAt
            name
            image
        }
        pageInfo {
            startCursor
            endCursor
            hasPreviousPage
            hasNextPage
        }
    }
}

Last updated