- GET /app/hook/config (
apps/get-webhook-config-for-app
) was added. - PATCH /app/hook/config (
apps/update-webhook-config-for-app
) was added. - PUT /app/installations/{installation_id}/suspended (
apps/suspend-installation
) was added. - POST /applications/{client_id}/token (
apps/check-token
) was added. - PATCH /applications/{client_id}/token (
apps/reset-token
) was added.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": null, | |
"servers": { | |
"added": [ | |
{ | |
"url": "{protocol}://{hostname}", | |
"variables": { | |
"hostname": { | |
"default": "HOSTNAME", | |
"description": "Self-hosted Enterprise Server or Enterprise Cloud hostname" |
Diff between GHES 2.2 and GHES 3.0 Generated by https://github.com/xuorig/heraclitus
- GET /app/hook/config (apps/get-webhook-config-for-app)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://www.w3schools.com/php/php_mysql_select.asp | |
// This is a joke | |
<?php | |
echo "<table style='border: solid 1px black;'>"; | |
echo "<tr><th>Id</th><th>Firstname</th><th>Lastname</th></tr>"; | |
class TableRows extends RecursiveIteratorIterator { | |
function __construct($it) { | |
parent::__construct($it, self::LEAVES_ONLY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
shop { | |
name | |
description | |
products @defer { # <===== server can send this later | |
name | |
price | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query ThisGonnaBeBad { | |
user(id: "1") { name } | |
user(id: "2") { name } | |
user(id: "3") { name } | |
user(id: "4") { name } | |
user(id: "5") { name } | |
user(id: "6") { name } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OnlyFilter | |
def self.call(schema_member, context) | |
return true unless visibility_proc = schema_member.metadata[:visibility_proc] | |
visibility_proc.call(context) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GraphQL::ObjectType.define do | |
name "Person" | |
field :name, types.String | |
field :bankAccount, BankAccount do | |
visibility ->(ctx) { ctx[:current_user].bank_account_access? } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GraphQL::Field.accepts_definitions( | |
visibility: ->(field, visibility_proc) { field.metadata[:visibility_proc] = visibility_proc } | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GraphQL::Field.accepts_definitions( | |
topsecret: ->(field, topsecret) { field.metadata[:topsecret] = topsecret } | |
) |
NewerOlder