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
require 'graphql' | |
class Bar < GraphQL::Schema::Object | |
field :color, String, null: false | |
def self.authorized?(object, _context) | |
object[:color] === 'red' | |
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
/** | |
* Font Awesome 5 Pro: SVG with JS, loading all icon styles from CDN | |
* | |
* This will just load everything--with all Pro icons in all styles. | |
* | |
* INSTALL: | |
* | |
* 1. Paste into the functions.php file of your WordPress theme. | |
* 2. You must also login to your fontawesome.com account and whitelist your web site as a | |
* Pro CDN domain: |
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
/** | |
* Font Awesome 5 Free: SVG with JS, loading all icon styles from CDN | |
* | |
* This will just load everything--with all Free icons in all styles. | |
* | |
* INSTALL: | |
* | |
* 1. Paste into the functions.php file of your WordPress theme. | |
* | |
* USE: |