Skip to main content

Тип запроса определяет операции GraphQL, которые извлекают данные с сервера.

Сведения о запросах

Каждая схема GraphQL имеет корневой тип как для запросов, так и для изменений. Тип запроса определяет операции GraphQL, которые извлекают данные с сервера.

Дополнительные сведения см. в разделе Формирование вызовов с помощью GraphQL.

Note

Для запросов GitHub App, выполненных с маркерами доступа пользователей, следует использовать отдельные запросы для проблем и запросов на вытягивание. Например, используйте фильтры is:issue или is:pull-request и их эквиваленты. Использование соединения search для возврата сочетания проблем и запросов на вытягивание в одном запросе приведет к пустому набору узлов.

codeOfConduct

Look up a code of conduct by its key.

Аргументы для codeOfConduct

Имя.Описание

key (String!)

The code of conduct's key.

codesOfConduct

Look up a code of conduct by its key.

enterprise

Look up an enterprise by URL slug.

Тип: Enterprise

Аргументы для enterprise

Имя.Описание

invitationToken (String)

The enterprise invitation token.

slug (String!)

The enterprise URL slug.

enterpriseAdministratorInvitation

Look up a pending enterprise administrator invitation by invitee, enterprise and role.

Аргументы для enterpriseAdministratorInvitation

Имя.Описание

enterpriseSlug (String!)

The slug of the enterprise the user was invited to join.

role (EnterpriseAdministratorRole!)

The role for the enterprise member invitation.

userLogin (String!)

The login of the user invited to join the enterprise.

enterpriseAdministratorInvitationByToken

Look up a pending enterprise administrator invitation by invitation token.

Аргументы для enterpriseAdministratorInvitationByToken

Имя.Описание

invitationToken (String!)

The invitation token sent with the invitation email.

enterpriseMemberInvitation

Look up a pending enterprise unaffiliated member invitation by invitee and enterprise.

Аргументы для enterpriseMemberInvitation

Имя.Описание

enterpriseSlug (String!)

The slug of the enterprise the user was invited to join.

userLogin (String!)

The login of the user invited to join the enterprise.

enterpriseMemberInvitationByToken

Look up a pending enterprise unaffiliated member invitation by invitation token.

Аргументы для enterpriseMemberInvitationByToken

Имя.Описание

invitationToken (String!)

The invitation token sent with the invitation email.

id

ID of the object.

Тип: ID!

license

Look up an open source license by its key.

Тип: License

Аргументы для license

Имя.Описание

key (String!)

The license's downcased SPDX ID.

licenses

Return a list of known open source licenses.

Тип: [License]!

marketplaceCategories

Get alphabetically sorted list of Marketplace categories.

Аргументы для marketplaceCategories

Имя.Описание

excludeEmpty (Boolean)

Exclude categories with no listings.

excludeSubcategories (Boolean)

Returns top level categories only, excluding any subcategories.

includeCategories ([String!])

Return only the specified categories.

marketplaceCategory

Look up a Marketplace category by its slug.

Аргументы для marketplaceCategory

Имя.Описание

slug (String!)

The URL slug of the category.

useTopicAliases (Boolean)

Also check topic aliases for the category slug.

marketplaceListing

Look up a single Marketplace listing.

Аргументы для marketplaceListing

Имя.Описание

slug (String!)

Select the listing that matches this slug. It's the short name of the listing used in its URL.

marketplaceListings

Look up Marketplace listings.

Аргументы для marketplaceListings

Имя.Описание

adminId (ID)

Select listings that can be administered by the specified user.

after (String)

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

allStates (Boolean)

Select listings visible to the viewer even if they are not approved. If omitted or false, only approved listings will be returned.

before (String)

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

categorySlug (String)

Select only listings with the given category.

first (