Skip to main content

Enterprise Server 3.21 ist derzeit als Release Candidate verfügbar.

Reference documentation for GraphQL schema types in the Gists category.

Objects

Gist

Object

A Gist.

Gist Wird implementiert

Felder für Gist

NameBESCHREIBUNG

comments (GistCommentConnection!)

A list of comments associated with the gist.

Argumente für comments

  • after (String)

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

  • before (String)

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

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

createdAt (DateTime!)

Identifies the date and time when the object was created.

description (String)

The gist description.

files ([GistFile])

The files in this gist.

Argumente für files

  • limit (Int)

    The maximum number of files to return.

    The default value is 10.

forks (GistConnection!)

A list of forks associated with the gist.

Argumente für forks

  • after (String)

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

  • before (String)

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

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (GistOrder)

    Ordering options for gists returned from the connection.

id (ID!)

The Node ID of the Gist object.

isFork (Boolean!)

Identifies if the gist is a fork.

isPublic (Boolean!)

Whether the gist is public or not.

name (String!)

The gist name.

owner (RepositoryOwner)

The gist owner.

pushedAt (DateTime)

Identifies when the gist was last pushed to.

resourcePath (URI!)

The HTML path to this resource.

stargazerCount (Int!)

Returns a count of how many stargazers there are on this object.

stargazers (StargazerConnection!)

A list of users who have starred this starrable.

Argumente für stargazers

  • after (String)

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

  • before (String)

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

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this Gist.

viewerHasStarred (Boolean!)

Returns a boolean indicating whether the viewing user has starred this starrable.

GistComment

Object

Represents a comment on an Gist.

GistComment Wird implementiert

Felder für GistComment

NameBESCHREIBUNG

author (Actor)

The actor who authored the comment.

authorAssociation (CommentAuthorAssociation!)

Author's association with the gist.

body (String!)

Identifies the comment body.

bodyHTML (HTML!)

The body rendered to HTML.

bodyText (String!)

The body rendered to text.

createdAt (DateTime!)

Identifies the date and time when the object was created.

createdViaEmail (Boolean!)

Check if this comment was created via an email reply.

databaseId (Int)

Identifies the primary key from the database.

editor (Actor)

The actor who edited the comment.

gist (Gist!)

The associated gist.

id (ID!)

The Node ID of the GistComment object.

includesCreatedEdit (Boolean!)

Check if this comment was edited and includes an edit with the creation data.

isMinimized (Boolean!)

Returns whether or not a comment has been minimized.

lastEditedAt (DateTime)

The moment the editor made the last edit.

minimizedReason (String)

Returns why the comment was minimized. One of abuse, off-topic, outdated, resolved, duplicate and spam. Note that the case and formatting of these values differs from the inputs to the MinimizeComment mutation.

publishedAt (DateTime)

Identifies when the comment was published at.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

userContentEdits (UserContentEditConnection)

A list of edits to this content.

Argumente für userContentEdits

  • after (String)

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

  • before (String)

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

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

viewerCanDelete (Boolean!)

Check if the current viewer can delete this object.

viewerCanMinimize (Boolean!)

Check if the current viewer can minimize this object.

viewerCanUnminimize (Boolean!)

Check if the current viewer can unminimize this object.

viewerCanUpdate (Boolean!)

Check if the current viewer can update this object.

viewerCannotUpdateReasons ([CommentCannotUpdateReason!]!)

Reasons why the current viewer can not update this comment.

viewerDidAuthor (Boolean!)

Did the viewer author this comment.

GistCommentConnection

Object

The connection type for GistComment.

Felder für GistCommentConnection

NameBESCHREIBUNG

edges ([GistCommentEdge])

A list of edges.

nodes ([GistComment])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

GistCommentEdge

Object

An edge in a connection.

Felder für GistCommentEdge

NameBESCHREIBUNG

cursor (String!)

A cursor for use in pagination.

node (GistComment)

The item at the end of the edge.

GistConnection

Object

The connection type for Gist.

Felder für GistConnection

NameBESCHREIBUNG

edges ([GistEdge])

A list of edges.

nodes ([Gist])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

GistEdge

Object

An edge in a connection.

Felder für GistEdge

NameBESCHREIBUNG

cursor (String!)

A cursor for use in pagination.

node (Gist)

The item at the end of the edge.

GistFile

Object

A file in a gist.

Felder für GistFile

NameBESCHREIBUNG

encodedName (String)

The file name encoded to remove characters that are invalid in URL paths.

encoding (String)

The gist file encoding.

extension (String)

The file extension from the file name.

isImage (Boolean!)

Indicates if this file is an image.

isTruncated (Boolean!)

Whether the file's contents were truncated.

language (Language)

The programming language this file is written in.

name (String)

The gist file name.

size (Int)

The gist file size in bytes.

text (String)

UTF8 text data or null if the file is binary.

Argumente für text

  • truncate (Int)

    Optionally truncate the returned file to this length.

Enums

GistOrderField

Enum

Properties by which gist connections can be ordered.

Werte für GistOrderField

NameBESCHREIBUNG
CREATED_AT

Order gists by creation time.

PUSHED_AT

Order gists by push time.

UPDATED_AT

Order gists by update time.

GistPrivacy

Enum

The privacy of a Gist.

Werte für GistPrivacy

NameBESCHREIBUNG
ALL

Gists that are public and secret.

PUBLIC

Public.

SECRET

Secret.

Input objects

GistOrder

Input object

Ordering options for gist connections.

Eingabefelder für GistOrder

NameBESCHREIBUNG

direction (OrderDirection!)

The ordering direction.

field (GistOrderField!)

The field to order repositories by.