Skip to main content
Skip to content

Meta

Referenzdokumentation für GraphQL-Schematypen in der Metakategorie.

Queries

codeOfConduct

Query

Look up a code of conduct by its key.

Typ: CodeOfConduct

Argumente für codeOfConduct

NameBESCHREIBUNG

key (String!)

The code of conduct's key.

codesOfConduct

Query

Look up a code of conduct by its key.

Typ: [CodeOfConduct]

meta

Query

Return information about the GitHub instance.

Typ: GitHubMetadata!

node

Query

Fetches an object given its ID.

Typ: Node

Argumente für node

NameBESCHREIBUNG

id (ID!)

ID of the object.

nodes

Query

Lookup nodes by a list of IDs.

Typ: [Node]!

Argumente für nodes

NameBESCHREIBUNG

ids ([ID!]!)

The list of node IDs.

rateLimit

Query

The client's rate limit information.

Typ: RateLimit

Argumente für rateLimit

NameBESCHREIBUNG

dryRun (Boolean)

If true, calculate the cost for the query without evaluating it.

The default value is false.

resource

Query

Lookup resource by a URL.

Typ: UniformResourceLocatable

Argumente für resource

NameBESCHREIBUNG

url (URI!)

The URL.

Objects

CodeOfConduct

Object

The Code of Conduct for a repository.

CodeOfConduct Wird implementiert

Felder für CodeOfConduct

NameBESCHREIBUNG

body (String)

The body of the Code of Conduct.

id (ID!)

The Node ID of the CodeOfConduct object.

key (String!)

The key for the Code of Conduct.

name (String!)

The formal name of the Code of Conduct.

resourcePath (URI)

The HTTP path for this Code of Conduct.

url (URI)

The HTTP URL for this Code of Conduct.

ContentWarning

Object

The content warning for a repository.

Felder für ContentWarning

NameBESCHREIBUNG

category (String!)

The content warning' category. E.g. 'mis_dis_information'.

customSubCategory (String)

The content warning's custom sub category text. E.g. 'dangerous stuff.'.

subCategory (String)

The content warning's sub category. E.g. 'medical_scientific'.

subTitle (String)

The content warning's sub title. E.g. 'The information contained in this page has not been verified.'.

title (String!)

The content warning's title. E.g. 'This page may contain false or misleading information.'.

type (String!)

The type of content warning. E.g. 'interstitial'.

GitHubMetadata

Object

Represents information about the GitHub instance.

Felder für GitHubMetadata

NameBESCHREIBUNG

gitHubServicesSha (GitObjectID!)

Returns a String that's a SHA of github-services.

gitIpAddresses ([String!])

IP addresses that users connect to for git operations.

githubEnterpriseImporterIpAddresses ([String!])

IP addresses that GitHub Enterprise Importer uses for outbound connections.

hookIpAddresses ([String!])

IP addresses that service hooks are sent from.

importerIpAddresses ([String!])

IP addresses that the importer connects from.

isPasswordAuthenticationVerifiable (Boolean!)

Whether or not users are verified.

pagesIpAddresses ([String!])

IP addresses for GitHub Pages' A records.

RateLimit

Object

Represents the client's rate limit.

Felder für RateLimit

NameBESCHREIBUNG

cost (Int!)

The point cost for the current query counting against the rate limit.

limit (Int!)

The maximum number of points the client is permitted to consume in a 60 minute window.

nodeCount (Int!)

The maximum number of nodes this query may return.

remaining (Int!)

The number of points remaining in the current rate limit window.

resetAt (DateTime!)

The time at which the current rate limit window resets in UTC epoch seconds.

used (Int!)

The number of points used in the current rate limit window.

Interfaces

Node

Interface

An object with an ID.

Node wird implementiert von