Commit e4d22cec authored by Tim Neutkens's avatar Tim Neutkens

Fix formatting of older PR that passed tests

parent 6ac2f4b7
......@@ -3,7 +3,7 @@ const path = require('path')
const Dotenv = require('dotenv-webpack')
module.exports = {
webpack: config => {
webpack: (config) => {
config.plugins = config.plugins || []
config.plugins = [
......
import React from 'react'
import App from 'next/app'
const isStatusCodeOk = res => {
const isStatusCodeOk = (res) => {
try {
return `${res.statusCode}`.startsWith('2')
} catch (e) {
......
......@@ -9,196 +9,320 @@ type BlogPost implements Node {
updatedAt: DateTime!
}
"""A connection to a list of items."""
"""
A connection to a list of items.
"""
type BlogPostConnection {
"""Information to aid in pagination."""
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""A list of edges."""
"""
A list of edges.
"""
edges: [BlogPostEdge]
"""Count of filtered result set without considering pagination arguments"""
"""
Count of filtered result set without considering pagination arguments
"""
count: Int!
}
"""An edge in a connection."""
"""
An edge in a connection.
"""
type BlogPostEdge {
"""The item at the end of the edge."""
"""
The item at the end of the edge.
"""
node: BlogPost!
"""A cursor for use in pagination."""
"""
A cursor for use in pagination.
"""
cursor: String!
}
input BlogPostFilter {
"""Logical AND on all given filters."""
"""
Logical AND on all given filters.
"""
AND: [BlogPostFilter!]
"""Logical OR on all given filters."""
"""
Logical OR on all given filters.
"""
OR: [BlogPostFilter!]
content: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
content_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
content_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
content_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
content_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
content_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
content_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
content_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
content_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
content_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
content_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
content_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
content_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
content_not_ends_with: String
createdAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
createdAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
createdAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
createdAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
createdAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
createdAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
createdAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
createdAt_gte: DateTime
id: ID
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
id_not: ID
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
id_in: [ID!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
id_not_in: [ID!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
id_lt: ID
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
id_lte: ID
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
id_gt: ID
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
id_gte: ID
"""All values containing the given string."""
"""
All values containing the given string.
"""
id_contains: ID
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
id_not_contains: ID
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
id_starts_with: ID
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
id_not_starts_with: ID
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
id_ends_with: ID
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
id_not_ends_with: ID
title: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
title_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
title_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
title_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
title_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
title_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
title_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
title_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
title_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
title_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
title_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
title_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
title_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
title_not_ends_with: String
updatedAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
updatedAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
updatedAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
updatedAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
updatedAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
updatedAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
updatedAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
updatedAt_gte: DateTime
}
......@@ -310,298 +434,488 @@ type File implements Node {
url: String!
}
"""A connection to a list of items."""
"""
A connection to a list of items.
"""
type FileConnection {
"""Information to aid in pagination."""
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""A list of edges."""
"""
A list of edges.
"""
edges: [FileEdge]
"""Count of filtered result set without considering pagination arguments"""
"""
Count of filtered result set without considering pagination arguments
"""
count: Int!
}
"""An edge in a connection."""
"""
An edge in a connection.
"""
type FileEdge {
"""The item at the end of the edge."""
"""
The item at the end of the edge.
"""
node: File!
"""A cursor for use in pagination."""
"""
A cursor for use in pagination.
"""
cursor: String!
}
input FileFilter {
"""Logical AND on all given filters."""
"""
Logical AND on all given filters.
"""
AND: [FileFilter!]
"""Logical OR on all given filters."""
"""
Logical OR on all given filters.
"""
OR: [FileFilter!]
contentType: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
contentType_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
contentType_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
contentType_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
contentType_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
contentType_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
contentType_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
contentType_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
contentType_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
contentType_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
contentType_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
contentType_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
contentType_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
contentType_not_ends_with: String
createdAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
createdAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
createdAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
createdAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
createdAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
createdAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
createdAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
createdAt_gte: DateTime
id: ID
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
id_not: ID
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
id_in: [ID!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
id_not_in: [ID!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
id_lt: ID
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
id_lte: ID
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
id_gt: ID
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
id_gte: ID
"""All values containing the given string."""
"""
All values containing the given string.
"""
id_contains: ID
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
id_not_contains: ID
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
id_starts_with: ID
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
id_not_starts_with: ID
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
id_ends_with: ID
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
id_not_ends_with: ID
name: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
name_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
name_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
name_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
name_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
name_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
name_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
name_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
name_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
name_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
name_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
name_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
name_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
name_not_ends_with: String
secret: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
secret_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
secret_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
secret_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
secret_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
secret_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
secret_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
secret_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
secret_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
secret_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
secret_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
secret_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
secret_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
secret_not_ends_with: String
size: Int
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
size_not: Int
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
size_in: [Int!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
size_not_in: [Int!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
size_lt: Int
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
size_lte: Int
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
size_gt: Int
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
size_gte: Int
updatedAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
updatedAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
updatedAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
updatedAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
updatedAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
updatedAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
updatedAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
updatedAt_gte: DateTime
url: String
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
url_not: String
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
url_in: [String!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
url_not_in: [String!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
url_lt: String
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
url_lte: String
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
url_gt: String
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
url_gte: String
"""All values containing the given string."""
"""
All values containing the given string.
"""
url_contains: String
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
url_not_contains: String
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
url_starts_with: String
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
url_not_starts_with: String
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
url_ends_with: String
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
url_not_ends_with: String
}
......@@ -641,7 +955,9 @@ type Mutation {
updateBlogPost(input: UpdateBlogPostInput!): UpdateBlogPostPayload
updateFile(input: UpdateFileInput!): UpdateFilePayload
updateUser(input: UpdateUserInput!): UpdateUserPayload
updateOrCreateBlogPost(input: UpdateOrCreateBlogPostInput!): UpdateOrCreateBlogPostPayload
updateOrCreateBlogPost(
input: UpdateOrCreateBlogPostInput!
): UpdateOrCreateBlogPostPayload
updateOrCreateFile(input: UpdateOrCreateFileInput!): UpdateOrCreateFilePayload
updateOrCreateUser(input: UpdateOrCreateUserInput!): UpdateOrCreateUserPayload
deleteBlogPost(input: DeleteBlogPostInput!): DeleteBlogPostPayload
......@@ -651,33 +967,51 @@ type Mutation {
invokeFunction(input: InvokeFunctionInput!): InvokeFunctionPayload
}
"""An object with an ID"""
"""
An object with an ID
"""
interface Node {
"""The id of the object."""
"""
The id of the object.
"""
id: ID!
}
"""Information about pagination in a connection."""
"""
Information about pagination in a connection.
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
"""
When paginating forwards, are there more items?
"""
hasNextPage: Boolean!
"""When paginating backwards, are there more items?"""
"""
When paginating backwards, are there more items?
"""
hasPreviousPage: Boolean!
"""When paginating backwards, the cursor to continue."""
"""
When paginating backwards, the cursor to continue.
"""
startCursor: String
"""When paginating forwards, the cursor to continue."""
"""
When paginating forwards, the cursor to continue.
"""
endCursor: String
}
type Query {
viewer: Viewer!
"""Fetches an object given its ID"""
"""
Fetches an object given its ID
"""
node(
"""The ID of an object"""
"""
The ID of an object
"""
id: ID!
): Node
}
......@@ -784,116 +1118,188 @@ type User implements Node {
updatedAt: DateTime!
}
"""A connection to a list of items."""
"""
A connection to a list of items.
"""
type UserConnection {
"""Information to aid in pagination."""
"""
Information to aid in pagination.
"""
pageInfo: PageInfo!
"""A list of edges."""
"""
A list of edges.
"""
edges: [UserEdge]
"""Count of filtered result set without considering pagination arguments"""
"""
Count of filtered result set without considering pagination arguments
"""
count: Int!
}
"""An edge in a connection."""
"""
An edge in a connection.
"""
type UserEdge {
"""The item at the end of the edge."""
"""
The item at the end of the edge.
"""
node: User!
"""A cursor for use in pagination."""
"""
A cursor for use in pagination.
"""
cursor: String!
}
input UserFilter {
"""Logical AND on all given filters."""
"""
Logical AND on all given filters.
"""
AND: [UserFilter!]
"""Logical OR on all given filters."""
"""
Logical OR on all given filters.
"""
OR: [UserFilter!]
createdAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
createdAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
createdAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
createdAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
createdAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
createdAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
createdAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
createdAt_gte: DateTime
id: ID
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
id_not: ID
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
id_in: [ID!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
id_not_in: [ID!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
id_lt: ID
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
id_lte: ID
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
id_gt: ID
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
id_gte: ID
"""All values containing the given string."""
"""
All values containing the given string.
"""
id_contains: ID
"""All values not containing the given string."""
"""
All values not containing the given string.
"""
id_not_contains: ID
"""All values starting with the given string."""
"""
All values starting with the given string.
"""
id_starts_with: ID
"""All values not starting with the given string."""
"""
All values not starting with the given string.
"""
id_not_starts_with: ID
"""All values ending with the given string."""
"""
All values ending with the given string.
"""
id_ends_with: ID
"""All values not ending with the given string."""
"""
All values not ending with the given string.
"""
id_not_ends_with: ID
updatedAt: DateTime
"""All values that are not equal to given value."""
"""
All values that are not equal to given value.
"""
updatedAt_not: DateTime
"""All values that are contained in given list."""
"""
All values that are contained in given list.
"""
updatedAt_in: [DateTime!]
"""All values that are not contained in given list."""
"""
All values that are not contained in given list.
"""
updatedAt_not_in: [DateTime!]
"""All values less than the given value."""
"""
All values less than the given value.
"""
updatedAt_lt: DateTime
"""All values less than or equal the given value."""
"""
All values less than or equal the given value.
"""
updatedAt_lte: DateTime
"""All values greater than the given value."""
"""
All values greater than the given value.
"""
updatedAt_gt: DateTime
"""All values greater than or equal the given value."""
"""
All values greater than or equal the given value.
"""
updatedAt_gte: DateTime
}
......@@ -906,11 +1312,37 @@ enum UserOrderBy {
updatedAt_DESC
}
"""This is the famous Relay viewer object"""
"""
This is the famous Relay viewer object
"""
type Viewer {
allBlogPosts(filter: BlogPostFilter, orderBy: BlogPostOrderBy, skip: Int, after: String, before: String, first: Int, last: Int): BlogPostConnection!
allFiles(filter: FileFilter, orderBy: FileOrderBy, skip: Int, after: String, before: String, first: Int, last: Int): FileConnection!
allUsers(filter: UserFilter, orderBy: UserOrderBy, skip: Int, after: String, before: String, first: Int, last: Int): UserConnection!
allBlogPosts(
filter: BlogPostFilter
orderBy: BlogPostOrderBy
skip: Int
after: String
before: String
first: Int
last: Int
): BlogPostConnection!
allFiles(
filter: FileFilter
orderBy: FileOrderBy
skip: Int
after: String
before: String
first: Int
last: Int
): FileConnection!
allUsers(
filter: UserFilter
orderBy: UserOrderBy
skip: Int
after: String
before: String
first: Int
last: Int
): UserConnection!
user: User
BlogPost(id: ID): BlogPost
File(id: ID, secret: String, url: String): File
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment