generateQueryName = ({ def, hash, file, queryType }) => {
  if (!def.name || !def.name.value) {
    const slugified = slugify(file, {
      replacement: ` `,
      lower: false,
    })
    def.name = {
      value: `${_.camelCase(`${queryType}-${slugified}-${hash}`)}`,
      kind: `Name`,
    }
  }
  return def
}
Add autogenerated query name if it wasn't defined by user.