Skip to content

Commit

Permalink
feat(typegraphql): update code to use typegraphql 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Jun 19, 2024
1 parent a5eef9b commit b77e0dc
Show file tree
Hide file tree
Showing 19 changed files with 244 additions and 416 deletions.
12 changes: 4 additions & 8 deletions docs/tutorials/graphql-typegraphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,18 @@ import "@tsed/typegraphql";
import "./resolvers/index"; // barrel file with all resolvers

@Configuration({
typegraphql: {
apollo: {
server1: {
// GraphQL server configuration
// See options descriptions on https://www.apollographql.com/docs/apollo-server/api/apollo-server.html
path: "/",
playground: true, // enable playground GraphQL IDE. Set false to use Apollo Studio
playground: true // enable playground GraphQL IDE. Set false to use Apollo Studio

// resolvers?: (Function | string)[];
// dataSources?: Function;
// server?: (config: Config) => ApolloServer;

// Apollo Server options
// See options descriptions on https://www.apollographql.com/docs/apollo-server/api/apollo-server.html
serverConfig: {
plugins: []
}

// plugins: []
// middlewareOptions?: ServerRegistration;

// type-graphql
Expand Down
Loading

0 comments on commit b77e0dc

Please sign in to comment.