Skip to content

Instantly share code, notes, and snippets.

@hash32bot
Last active December 25, 2018 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hash32bot/6bb06aba0f56fa74a47f8cbf5249c329 to your computer and use it in GitHub Desktop.
Save hash32bot/6bb06aba0f56fa74a47f8cbf5249c329 to your computer and use it in GitHub Desktop.
Speaker Type - Graphql with Sinatra - http://bit.ly/2V9p6OL
require 'graphql'
require_relative 'base_object'
class Types::Speaker < Types::BaseObject
description 'Resembles a Speaker Object Type'
field :id, ID, null: false
field :name, String, null: false
field :twitter_handle, String, null: true
field :bio, String, null: true
field :talk_title, String, null: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment