File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,13 +160,13 @@ export interface ParseOptions {
160160 *
161161 * const document = parse(
162162 * `
163- * {
164- * t { ...A(var: true) }
165- * }
166- * fragment A($var: Boolean = false) on T {
167- * name
168- * }
169- * `,
163+ * {
164+ * t { ...A(var: true) }
165+ * }
166+ * fragment A($var: Boolean = false) on T {
167+ * name
168+ * }
169+ * `,
170170 * {
171171 * experimentalFragmentArguments: true,
172172 * maxTokens: 80,
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ import { createHandler } from 'graphql-http/lib/use/express';
2121import { buildSchema } from ' graphql' ;
2222
2323const schema = buildSchema (`
24- type User {
25- id: String
26- name: String
27- }
28-
29- type Query {
30- user(id: String): User
31- }
24+ type User {
25+ id: String
26+ name: String
27+ }
28+
29+ type Query {
30+ user(id: String): User
31+ }
3232` );
3333
3434// Maps id to User object
Original file line number Diff line number Diff line change @@ -253,26 +253,26 @@ const fakeDatabase = {};
253253
254254// Construct a schema, using GraphQL schema language
255255const schema = buildSchema (`
256- input MessageInput {
257- content: String
258- author: String
259- }
256+ input MessageInput {
257+ content: String
258+ author: String
259+ }
260260
261- type Message {
262- id: ID!
263- content: String
264- author: String
265- }
261+ type Message {
262+ id: ID!
263+ content: String
264+ author: String
265+ }
266266
267- type Query {
268- getMessage(id: ID!): Message
269- getMessages: [Message]
270- }
267+ type Query {
268+ getMessage(id: ID!): Message
269+ getMessages: [Message]
270+ }
271271
272- type Mutation {
273- createMessage(input: MessageInput): Message
274- updateMessage(id: ID!, input: MessageInput): Message
275- }
272+ type Mutation {
273+ createMessage(input: MessageInput): Message
274+ updateMessage(id: ID!, input: MessageInput): Message
275+ }
276276` );
277277
278278// If Message had any complex fields, we'd put them on this object.
Original file line number Diff line number Diff line change @@ -265,15 +265,15 @@ import { buildSchema } from 'graphql';
265265
266266// Construct a schema, using GraphQL schema language
267267const schema = buildSchema (`
268- type RandomDie {
269- numSides: Int!
270- rollOnce: Int!
271- roll(numRolls: Int!): [Int]
272- }
268+ type RandomDie {
269+ numSides: Int!
270+ rollOnce: Int!
271+ roll(numRolls: Int!): [Int]
272+ }
273273
274- type Query {
275- getDie(numSides: Int): RandomDie
276- }
274+ type Query {
275+ getDie(numSides: Int): RandomDie
276+ }
277277` );
278278
279279// This class implements the RandomDie GraphQL type
You can’t perform that action at this time.
0 commit comments