-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update apollo graphql packages to v3 (major) (#794)
* fix(deps): update apollo graphql packages to v3 * stash * Change Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Nathan Bierema <[email protected]>
- Loading branch information
1 parent
2913769
commit 503be15
Showing
8 changed files
with
182 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
import { ApolloServer } from 'apollo-server-express'; | ||
import schema from '../api/schema'; | ||
import { schema, resolvers } from '../api/schema'; | ||
import { Store } from '../store'; | ||
|
||
export default function (store: Store) { | ||
return new ApolloServer({ | ||
schema, | ||
typeDefs: schema, | ||
resolvers, | ||
context: { | ||
store: store, | ||
}, | ||
playground: { | ||
endpoint: '/graphql', | ||
tabs: [ | ||
{ | ||
endpoint: '/graphql', | ||
query: | ||
'{\n' + | ||
' reports {\n' + | ||
' id,\n' + | ||
' type,\n' + | ||
' title\n' + | ||
' }\n' + | ||
'}', | ||
}, | ||
], | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.