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 Aug 29, 2024
1 parent eaf4242 commit 471f636
Show file tree
Hide file tree
Showing 31 changed files with 2,124 additions and 994 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 471f636

Please sign in to comment.