Skip to content

Commit

Permalink
chore: Bumping deps & adding scripts for running examples (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Oct 3, 2020
1 parent 27d5b82 commit 2bceeb9
Show file tree
Hide file tree
Showing 36 changed files with 12,114 additions and 5,880 deletions.
36 changes: 18 additions & 18 deletions examples/apollo-fullstack/fullstack-schema.graphql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### This file was autogenerated by GraphQL Nexus
### This file was generated by Nexus Schema
### Do not make changes to this file directly

type Launch {
id: ID!
isBooked: Boolean!
mission: Mission!
rocket: Rocket!
id: ID
isBooked: Boolean
mission: Mission
rocket: Rocket
site: String
}

Expand All @@ -16,18 +16,18 @@ after these.
"""
type LaunchConnection {
cursor: String
hasMore: Boolean!
launches: [Launch]!
hasMore: Boolean
launches: [Launch]
}

type Mission {
missionPatch(size: PatchSize): String!
missionPatch(size: PatchSize): String
name: String
}

type Mutation {
bookTrips(launchIds: [ID!]!): TripUpdateResponse!
cancelTrip(launchId: ID!): TripUpdateResponse!
bookTrips(launchIds: [ID!]!): TripUpdateResponse
cancelTrip(launchId: ID!): TripUpdateResponse
login(email: String): String
}

Expand All @@ -37,7 +37,7 @@ enum PatchSize {
}

type Query {
launch(count: Int, id: ID!): Launch!
launch(count: Int, id: ID!): Launch
launches(
"""
If you add a cursor here, it will only return results _after_ this cursor
Expand All @@ -48,24 +48,24 @@ type Query {
The number of results to show. Must be >= 1. Default = 20
"""
pageSize: Int
): LaunchConnection!
): LaunchConnection
me: User
}

type Rocket {
id: ID!
id: ID
name: String
type: String
}

type TripUpdateResponse {
launches: [Launch!]
launches: [Launch]
message: String
success: Boolean!
success: Boolean
}

type User {
email: String!
id: ID!
trips: [Launch!]!
email: String
id: ID
trips: [Launch]
}
7 changes: 4 additions & 3 deletions examples/apollo-fullstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
"@nexus/schema": "0.14.0",
"apollo-datasource": "^0.2.0",
"apollo-datasource-rest": "^0.2.0",
"apollo-server": "2.2.0-alpha.2",
"apollo-server-testing": "2.2.0-alpha.2",
"apollo-server": "^2.18.1",
"apollo-server-testing": "^2.18.1",
"dedent": "^0.7.0",
"fullstack-tutorial": "apollographql/fullstack-tutorial.git",
"graphql": "^15.3.0",
"graphql-tools": "^4.0.7",
"isemail": "^3.2.0",
"sequelize": "^5.21.2",
"sqlite3": "^4.1.0"
Expand All @@ -38,6 +39,6 @@
"node-fetch": "^2.2.1",
"prettier": "^1.19.1",
"ts-node-dev": "^1.0.0-pre.30",
"typescript": "^3.6.4"
"typescript": "^3.9"
}
}
Loading

0 comments on commit 2bceeb9

Please sign in to comment.