Module: ReplTalk::GQL::Fields

Included in:
Mutations
Defined in:
lib/repltalk/graphql.rb

Constant Summary collapse

ROLES =
"
	id
	name
	key
	tagline
"
LANGUAGE =
"
	id
	key
	displayName
	tagline
	icon
	category
"
BOARD =
"
	id
	name
	color
	description
"
USER =
"
	id
	fullName
	username
	image
	bio
	isHacker
	timeCreated
	roles {
		#{ROLES}
	}
	languages {
		#{LANGUAGE}
	}
"
TAG =
"
	id
"
REPL =
"
	id
	url
	title
	description
	timeCreated
	size
	runCount
	publicForkCount
	imageUrl
	isPrivate
	isAlwaysOn
	tags {
		#{TAG}
	}
	lang {
		#{LANGUAGE}
	}
	user {
		#{USER}
	}
	origin {
		url
	}
"
COMMENT =
"
	id
	body
	timeCreated
	url
	isAnswer
	voteCount
	canVote
	hasVoted
	user {
		#{USER}
	}
	post {
		id
	}
"
REPL_COMMENT =
"
	id
	body
	timeCreated
	user {
		#{USER}
	}
	repl {
		#{REPL}
	}
"
POST =
"
	id
	title
	body
	preview(removeMarkdown: true, length: 150)
	url
	commentCount
	isHidden
	isPinned
	isLocked
	isAnnouncement
	timeCreated
	isAnswered
	isAnswerable
	voteCount
	canVote
	hasVoted
	user {
		#{USER}
	}
	repl {
		#{REPL}
	}
	replComment {
		#{REPL_COMMENT}
	}
	board {
		#{BOARD}
	}
	answer {
		#{COMMENT}
	}
"