File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,34 +39,38 @@ Then you will be ready to add a GraphQL API to your express server with only a f
3939import express from ' express'
4040const {
4141 generateModelTypes ,
42- generateGraphqlExpressMiddleware
42+ generateGraphqlExpressMiddleware ,
4343} = require (' graphql-sequelize-generator' )
4444import models from ' ./models'
4545
4646const types = generateModelTypes (models)
4747
4848graphqlSchemaDeclaration .user = {
4949 model: models .user ,
50- actions: [' list' , ' create' ]
50+ actions: [' list' , ' create' ],
5151}
5252
5353const server = generateApolloServer ({
5454 graphqlSchemaDeclaration,
5555 types,
56- models
56+ models,
5757})
5858
5959const app = express ()
6060server .start ()
6161server .applyMiddleware ({
6262 app,
63- path: ' /graphql'
63+ path: ' /graphql' ,
6464})
6565```
6666
67+ <!-- A priori OK mais pas sûr -->
68+
6769## Getting started with boilerplates
6870
6971You can easily start a project with graphql-sequelize-generator using these boilerplates:
7072
7173- In JavaScript : [ GSG Boilerplate] ( https://github.com/teamstarter/gsg-boilerplate )
7274- In TypeScript : [ GSG Typescript Boilerplate] ( https://github.com/teamstarter/gsg-boilerplate-typescript )
75+
76+ <!-- OK -->
You can’t perform that action at this time.
0 commit comments