Skip to content

Commit 02a7908

Browse files
authored
Merge pull request #7 from RuntimeRacer/hotfix-kajitool-handler
Added Token type for GraphQL requests expecting that type.
2 parents f622d81 + 96c5eef commit 02a7908

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scalar.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ type (
3333
// This type is most often used by GraphQL to represent free-form
3434
// human-readable text.
3535
String string
36+
37+
// Token represents a Token string
38+
Token string
3639
)
3740

3841
// NewBoolean is a helper to make a new *Boolean.
@@ -49,3 +52,6 @@ func NewInt(v Int) *Int { return &v }
4952

5053
// NewString is a helper to make a new *String.
5154
func NewString(v String) *String { return &v }
55+
56+
// NewToken is a helper to make a new *String.
57+
func NewToken(v Token) *Token { return &v }

0 commit comments

Comments
 (0)