Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions starters/express-apollo-prisma/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ indent_size = 2
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[{package.json.eslintrc.json}]
indent_style = space
5 changes: 2 additions & 3 deletions starters/express-apollo-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 {
Expand Down