mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix bug with id middleware
Ids are queried only for well known queries and mutations
This commit is contained in:
parent
889818cd2d
commit
2e7e0579e4
@ -1,4 +1,3 @@
|
|||||||
// import { neo4jgraphql } from "neo4j-graphql-js"
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import bcrypt from 'bcryptjs'
|
import bcrypt from 'bcryptjs'
|
||||||
|
|||||||
@ -15,10 +15,14 @@ const includeId = async (resolve, root, args, context, resolveInfo) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
Query: (resolve, root, args, context, info) => {
|
Query: {
|
||||||
|
User: (resolve, root, args, context, info) => {
|
||||||
return includeId(resolve, root, args, context, info)
|
return includeId(resolve, root, args, context, info)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Mutation: (resolve, root, args, context, info) => {
|
Mutation: {
|
||||||
|
CreatePost: (resolve, root, args, context, info) => {
|
||||||
return includeId(resolve, root, args, context, info)
|
return includeId(resolve, root, args, context, info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user