File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
packages/graphql-authentication-prisma Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const server = new GraphQLServer({
39
39
endpoint : 'http://localhost:4466' ,
40
40
debug : true
41
41
} ) ,
42
- graphqlUser : graphqlAuthenticationConfig ( {
42
+ graphqlAuthentication : graphqlAuthenticationConfig ( {
43
43
adapter : new GraphqlAuthenticationPrismaAdapter ( ) ,
44
44
secret : 'wherearemyshoes' ,
45
45
mailer,
Original file line number Diff line number Diff line change 1
- # import Query.*, Mutation.* from "../schema.graphql"
1
+ # import Query.*, Mutation.* from "../../../node_modules/graphql-authentication/ schema.graphql"
2
2
3
3
type Query {
4
4
timeline : [Post ! ]!
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export class GraphqlAuthenticationPrismaAdapter
5
5
implements GraphqlAuthenticationAdapter {
6
6
prismaContextName = 'db' ;
7
7
8
- constructor ( options : { prismaContextName ?: string } ) {
9
- if ( options . prismaContextName ) {
8
+ constructor ( options : { prismaContextName ?: string } = { } ) {
9
+ if ( options && options . prismaContextName ) {
10
10
this . prismaContextName = options . prismaContextName ;
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ../../tsconfig.json"
2
+ "extends" : " ../../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "strictFunctionTypes" : false
5
+ }
3
6
}
You can’t perform that action at this time.
0 commit comments