Skip to main content

Nav

Nav is an item within a navigational heirarchy of some kind, most often viewed as a menu.

type Nav {
createdAt: Date!
demandHqId: ID!
href: String!
label: String!
navId: ID!
navLevel: Int!
navType: String!
navs(
after: String
before: String
first: Int
last: Int
): NavConnection!
parentNavId: ID
position: Int
storefrontId: ID!
updatedAt: Date!
updatedBy: ID!
}

Fields

Where this Nav link should lead to. Can be an absolute or relative url. 768 character limit.

The label for this Nav, limit 64 characters.

A number, representing where this Nav resides in the heirarchy. Immutable, and limited to 0 through 6. 0 is the top level, 1 is the second level, etc.

A string indicating the purpose of this Nav hierarchy, must match parentNav if applicable. Limit 128 characters.

List Child Navs for a nav.

Requires the user to have the nav/read permission on the associated DemandHq.

Returns the elements in the list that come after the specified cursor.

Returns the elements in the list that come before the specified cursor.

Returns the first n elements from the list.

Returns the last n elements from the list.

All Navs besides the root (Level 0) have a parentNavId. Immutable.

Where this Nav should be located with respect to other Navs. Need not be sequential or unique.

Returned by

createNav mutation ● nav query ● updateNav mutation

Member of

NavConnection object ● NavEdge object