diff --git a/starters/express-apollo-prisma/.editorconfig b/starters/express-apollo-prisma/.editorconfig index adbfc82d0..0bc6b5fd0 100644 --- a/starters/express-apollo-prisma/.editorconfig +++ b/starters/express-apollo-prisma/.editorconfig @@ -14,3 +14,6 @@ indent_size = 2 [*.md] max_line_length = off trim_trailing_whitespace = false + +[{package.json.eslintrc.json}] +indent_style = space \ No newline at end of file diff --git a/starters/express-apollo-prisma/package.json b/starters/express-apollo-prisma/package.json index 64e5837e6..f88d8b6f0 100644 --- a/starters/express-apollo-prisma/package.json +++ b/starters/express-apollo-prisma/package.json @@ -13,10 +13,9 @@ "scripts": { "codegen": "graphql-codegen && npm run format:codegen", "prepare": "npm run prisma:generate && npm run codegen", - "test": "npm run prepare && jest", + "test": "jest", "start": "npm run prepare && prisma migrate dev && nodemon", - "dev:test": "jest", - "dev:start": "nodemon", + "dev": "nodemon", "build": "npm run prepare && tsc --project tsconfig.build.json", "lint": "eslint \"src/**/*.ts\"", "lint:fix": "npm run lint --fix", diff --git a/starters/express-apollo-prisma/src/graphql/schema/technology/technology.typedefs.ts b/starters/express-apollo-prisma/src/graphql/schema/technology/technology.typedefs.ts index a962cc26e..8f51a49fc 100644 --- a/starters/express-apollo-prisma/src/graphql/schema/technology/technology.typedefs.ts +++ b/starters/express-apollo-prisma/src/graphql/schema/technology/technology.typedefs.ts @@ -18,7 +18,7 @@ export const technologyTypeDefs = gql` """ A page of technology items """ - type TechnologyCollectionPage { + type Collection { "Identifies the total count of technology records in data source" totalCount: Int! "A list of records of the requested page" @@ -32,7 +32,7 @@ export const technologyTypeDefs = gql` "Returns a single Technology by ID" technology(id: ID!): Technology "Returns a list of Technologies" - technologies(limit: Int = 5, offset: Int = 0): TechnologyCollectionPage! + technologies(limit: Int = 5, offset: Int = 0): Collection! } input CreateTechnology {