I am attempting to utilize fragment, but it appear...
# orm-help
s
I am attempting to utilize fragment, but it appears that the value passed in the fragment property has no effect on whether the resolver is called. It is always called not matter what the value is.
Copy code
const fragmentMiddleware = {
  Query: {
    fragment: 'fragmentsdfgsdg author on Booksdfgsdfg { authorsfdgsdgfsdg }',
    resolve: async (resolve, parent, args, context, info) => {
      console.log(info.fieldName);
      return await resolve(parent, args, context, info);
    },
  },
};
It would be preferable if the resolver was never called since the fragment spec is junk.