text: 'use strict'
  
  const { gql } = require('apollo-server')
  
  const typeDefs = gql`
    type Book {
      slug: String!
      title: String!
      author: String!
    }
  
    type Query {
      getBook(slug: String!): Book
    }
  `
  
  const argsToPath = ({ slug }) => `${slug}.json`
  
  module.exports = {
    typeDefs,
    argsToPath,
  }
  