I created some resusable fql functions to use as main customer resolvers for all graphql endpoint.
==> i override all the default generated queries/mutation resolvers:
the below will not work.
==> fauna won’t let you reuse same fql function for other customer resolvers to other types.
==> fauna wont allow you to reuse same fql function for 2 different custom resolver references
is there any way i can make this work?
============================
type Mutation {
createUser(data: UserInput): User @resolver(name: “createcoreresolverfunction”)
updateUser(id: ID!, version: String!, data: UserInput!): User @resolver(name: “updatecoreresolverfunction”)
deleteUser(id: ID!, tn: String): User @resolver(name: “deletecoreresolverfunction”)
createCompany(data: CompanyInput): Company @resolver(name: “createcoreresolverfunction”)
updateCompany(id: ID!, version: String!, data: CompanyInput!): Company @resolver(name: “updatecoreresolverfunction”)
deleteCompany(id: ID!, tn: String): Company @resolver(name: “deletecoreresolverfunction”)
}